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

Abdejalil SETH shait.abdeljalil at gmail.com
Sun Apr 14 12:51:02 EDT 2013


Hi Phil,

when I use  :
  SootClass soot_class = Scene.v().getSootClass("java.lang.reflect.Field");
  SootMethod src = soot_class.getMethodByName("*setAccessible*");


*This is the OUTPUT :*
*
*
Soot started on Sat Apr 13 18:49:28 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:28)
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:43)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.cs.mcgill.ca/pipermail/soot-list/attachments/20130414/e070bcd7/attachment.html 


More information about the Soot-list mailing list