[Soot-list] CallGraph getMethodbyName() --Problem

Phil Pratt-Szeliga pcpratts at trifort.org
Sun Apr 14 11:19:51 EDT 2013


Hi Jalilos,

Maybe if you tried to do:
  SootMethod src = Scene.v().getMainClass().getMethodByName("main");

at line 40 it would work.

Sincerely,
Phil Pratt-Szeliga
Syracuse University
http://trifort.org/


On Sun, Apr 14, 2013 at 11:04 AM, Abdejalil SETH <shait.abdeljalil at gmail.com
> wrote:

> Hi everybody,
>
> I would like to get the setAccessible() using the CallGraphExample.Java
>
> if you can help me , i’d be grateful
>
> Thank you
>
> CODE :
>
> CallGraphExample.Java : http://pastebin.com/2N0U4urp
>
> FieldAccessible.java : http://pastebin.com/nEzZAAzV
>
> OUTPUT of CallGraphExample.java :
>
> Soot started on Sat Apr 13 16:54:27 CEST 2013
>
> [Call Graph] For information on where the call graph may be incomplete,
> use the verbose option to the cg phase.
>
> [Call Graph] For information on where the call graph may be incomplete,
> use the verbose option to the cg phase.
>
> Exception in thread "main" java.lang.RuntimeException: couldn't find
> method setAccessible(*) in ToDo.FieldAccessible
>
> at soot.SootClass.getMethodByName(SootClass.java:494)
>
> at
> callgraphs.CallGraphExample$1.internalTransform(CallGraphExample.java:40)
>
> at soot.SceneTransformer.transform(SceneTransformer.java:39)
>
> at soot.Transform.apply(Transform.java:89)
>
> at soot.ScenePack.internalApply(ScenePack.java:43)
>
> at soot.Pack.apply(Pack.java:114)
>
> at soot.PackManager.runWholeProgramPacks(PackManager.java:418)
>
> at soot.PackManager.runPacks(PackManager.java:336)
>
> at soot.Main.run(Main.java:198)
>
> at soot.Main.main(Main.java:141)
>
> at callgraphs.CallGraphExample.main(CallGraphExample.java:55)
>
>
>
>  Thank you in advance,
> jalilos
>
>
>
> _______________________________________________
> Soot-list mailing list
> Soot-list at sable.mcgill.ca
> http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.cs.mcgill.ca/pipermail/soot-list/attachments/20130414/aab7a948/attachment-0001.html 


More information about the Soot-list mailing list