<div dir="ltr">122.5<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 18, 2016 at 6:52 PM, Ridhi Jain <span dir="ltr"><<a href="mailto:ridhij@iiitd.ac.in" target="_blank">ridhij@iiitd.ac.in</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I tried IntType.v() gives the same error.<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 18, 2016 at 6:37 PM, Bernhard Berger <span dir="ltr"><<a href="mailto:berber@tzi.de" target="_blank">berber@tzi.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi,<div><br></div><div>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><br></div><div>Regards, Bernhard</div><div><br><div><blockquote type="cite"><div><div class="m_4403368800356325356h5"><div>Am 18.10.2016 um 12:51 schrieb Ridhi Jain <<a href="mailto:ridhij@iiitd.ac.in" target="_blank">ridhij@iiitd.ac.in</a>>:</div><br class="m_4403368800356325356m_6936636680014588436Apple-interchange-newline"></div></div><div><div><div class="m_4403368800356325356h5"><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<Type>, 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'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="m_4403368800356325356m_6936636680014588436gmail_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></div></div>
______________________________<wbr>_________________<br>Soot-list mailing list<br><a href="mailto:Soot-list@CS.McGill.CA" target="_blank">Soot-list@CS.McGill.CA</a><br><a href="https://mailman.CS.McGill.CA/mailman/listinfo/soot-list" target="_blank">https://mailman.CS.McGill.CA/m<wbr>ailman/listinfo/soot-list</a><br></div></blockquote></div><br></div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="m_4403368800356325356gmail_signature" data-smartmail="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></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="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>