[Soot-list] Usage of Type

Ridhi Jain ridhij at iiitd.ac.in
Tue Oct 18 09:22:20 EDT 2016


I tried IntType.v() gives the same error.

On Tue, Oct 18, 2016 at 6:37 PM, Bernhard Berger <berber at tzi.de> wrote:

> Hi,
>
> 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.
>
> Regards, Bernhard
>
> Am 18.10.2016 um 12:51 schrieb Ridhi Jain <ridhij at iiitd.ac.in>:
>
> Hi
>
> I am trying to extract SootMethod by using* sootClass.getMethod(String ,
> List<Type>, Type). *
> As I had the types available in String, I manually matched the type ( eg.
> if it is int, I used: *Type rtn = new IntType(g);* where Global g is
> initialized with null)
> Using the same technique I built List(ly).
>
> Finally when I put them together the function:
> * sc.getMethod(name, ly, rtn);*
>
> I was getting error:
> *Class Demo.Sample doesn't have method max([int]) : int*
>
> However, I have method max with return type int and a single parameter int
> (int max(int)) and also sc.getMethodByName(name) works fine.
>
> Can anyone please help?
>
>
>
> --
> Thanks and Regards
> Ridhi Jain
> PhD (CSE)
> IIITD
> _______________________________________________
> Soot-list mailing list
> Soot-list at CS.McGill.CA
> https://mailman.CS.McGill.CA/mailman/listinfo/soot-list
>
>
>


-- 
Thanks and Regards
Ridhi Jain
PhD (CSE)
IIITD
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://mailman.CS.McGill.CA/pipermail/soot-list/attachments/20161018/3e6a7274/attachment.html 


More information about the Soot-list mailing list