[Soot-list] CallGraph -- No Method ( ERROR )
Quentin Sabah
quentin.sabah at inria.fr
Sat Apr 13 11:32:35 EDT 2013
Hi Abdejalil,
On Apr 13, 2013, at 5:25 PM, Abdejalil SETH wrote:
> SootMethod src = Scene.v().getMainClass().getMethodByName("setAccessible");
This line is:
- looking for the main class of your program (FieldAccessible)
- then looking for a method *declared* in FieldAccessible, with the name "setAccessible".
However, "setAccessible" is declared in the Field class, hence the exception you get is perfectly clear:
"No method setAccessible in class ToDo.FieldAccessible".
Try with something like:
SootClass a = Scene.v().getSootClass("Field");
SootMethod src = a.getMethodByName("setAccessible");
Regards.
--
Quentin Sabah, CIFRE Ph.D. student
Grenoble University
INRIA-SARDES | STMicroelectronics/AST
Montbonnot, France | Grenoble, France
mailto:quentin.sabah at inria.fr | mailto:quentin.sabah at st.com
phone: +33 476 61 52 42 | phone: +33 476 58 44 14
More information about the Soot-list
mailing list