<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">I’m not quite sure what the actual problem is since I’m using sub signatures if necessary. Nevertheless, I remember that IntType is a singleton and perhaps you better try IntType.v() to get the IntType instance. Perhaps this can solve your problem.</div><div class=""><br class=""></div><div class="">Regards, Bernhard</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">Am 18.10.2016 um 12:51 schrieb Ridhi Jain <<a href="mailto:ridhij@iiitd.ac.in" class="">ridhij@iiitd.ac.in</a>>:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class=""><div class=""><div class=""><div class=""><div class=""><div class=""><div class="">Hi<br class=""><br class=""></div>I am trying to extract SootMethod by using<b class=""> sootClass.getMethod(String , List<Type>, Type). </b><br class=""></div>As I had the types available in String, I manually matched the type ( eg. if it is int, I used: <b class="">Type rtn = new IntType(g);</b> where Global g is initialized with null)<br class=""></div>Using the same technique I built List(ly).<br class=""><br class=""></div>Finally when I put them together the function:<br class=""><b class=""> sc.getMethod(name, ly, rtn);</b><br class=""><br class=""></div>I was getting error: <br class=""><b class="">Class Demo.Sample doesn't have method max([int]) : int</b><br class=""><br class=""></div>However, I have method max with return type int and a single parameter int (int max(int)) and also sc.getMethodByName(name) works fine.<br class=""><br class=""></div>Can anyone please help?<br class=""><div class=""><div class=""><div class=""><div class=""> <br class=""><div class=""><br clear="all" class=""><div class=""><div class=""><div class=""><div class=""><br class="">-- <br class=""><div class="gmail_signature"><div dir="ltr" class=""><div class=""><div class=""><div class="">Thanks and Regards<br class=""></div>Ridhi Jain<br class=""></div>PhD (CSE)<br class=""></div>IIITD<br class=""></div></div>
</div></div></div></div></div></div></div></div></div></div>
_______________________________________________<br class="">Soot-list mailing list<br class=""><a href="mailto:Soot-list@CS.McGill.CA" class="">Soot-list@CS.McGill.CA</a><br class="">https://mailman.CS.McGill.CA/mailman/listinfo/soot-list<br class=""></div></blockquote></div><br class=""></div></body></html>