<div dir="ltr"><div><div><div><div><div><div><div>Hi<br><br></div>I am trying to extract SootMethod by using<b> sootClass.getMethod(String , List&lt;Type&gt;, Type). </b><br></div>As I had the types available in String, I manually matched the type ( eg. if it is int, I used: <b>Type rtn = new IntType(g);</b> where Global g is initialized with null)<br></div>Using the same technique I built List(ly).<br><br></div>Finally when I put them together the function:<br><b> sc.getMethod(name, ly, rtn);</b><br><br></div>I was getting error: <br><b>Class Demo.Sample doesn&#39;t have method max([int]) : int</b><br><br></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><br></div>Can anyone please help?<br><div><div><div><div> <br><div><br clear="all"><div><div><div><div><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div><div>Thanks and Regards<br></div>Ridhi Jain<br></div>PhD (CSE)<br></div>IIITD<br></div></div>
</div></div></div></div></div></div></div></div></div></div>