[Soot-list] Successivly load classes in SOOT
Xiaowei Zhou
zhouxiaowei08 at otcaix.iscas.ac.cn
Sat Dec 18 02:41:24 EST 2010
I have encountered the same problem and managed to solve it, but I still do
not know the root cause.
Maybe you can try the sample code on
http://www.sable.mcgill.ca/pipermail/soot-list/2008-July/001828.html.
From: soot-list-bounces at sable.mcgill.ca
[mailto:soot-list-bounces at sable.mcgill.ca] On Behalf Of Wu Xiaoquan
Sent: Thursday, December 16, 2010 9:22 PM
To: soot-list at sable.mcgill.ca
Subject: [Soot-list] Successivly load classes in SOOT
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/20101218/87b16d10/attachment.html
More information about the Soot-list
mailing list