[Soot-list] Successivly load classes in SOOT
Wu Xiaoquan
wuxiaoquan07 at otcaix.iscas.ac.cn
Thu Dec 16 08:21:42 EST 2010
When I analyze class A with the following SOOT APIs, everything is OK.
SootClass sClass = Scene.v().loadClassAndSupport(className);
Scene.v().loadNecessaryClasses();
sClass.setApplicationClass();
Options.v().set_whole_program(true);
But when I analyze another class B in the same process after loAding A with
the same APIs, exceptions occures at:
SootClass sClass = Scene.v().loadClassAndSupport(className);
Exception message is like this:
This operation requires resolving level SIGNATURES but B is at resolving
level HIERARCHY
If you are extending Soot, try to add the following call before calling
soot.Main.main(..):
Scene.v().addBasicClass(B,SIGNATURES);
Could anybody know how to load two classes in a row in SOOT?
Is there same APIs which could restore SOOT to the initial state?
Thanks.
===================================================
Wu, Xiaoquan 伍晓泉
Technology Center for Software Engineering
Institute of Software, Chinese Academy of Sciences
P.O.Box 8718, Beijing 100190, China
Email: wuxiaoquan07 at otcaix.iscas.ac.cn
===================================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.cs.mcgill.ca/pipermail/soot-list/attachments/20101216/11bbc2cf/attachment.html
More information about the Soot-list
mailing list