protected synchronized SootClass bringClassToScene(String className) {
SootClass sootClass;
sootClass = Scene.v().forceResolve(className, SootClass.BODIES | SootClass.HIERARCHY | SootClass.SIGNATURES);
sootClass.setApplicationClass();
return sootClass;
}
So I then invoke:
SootClass sootClass = bringClassToScene("");
sootClass.hasOuterClass() //return falseI would expect it to return true in this case.
Hi Jason,
Please try to avoid using methods such as forceResolve(). As I said, these methods are internals of Soot. Without a very profound understanding of the Soot class loading process, you can run into all sorts of funny behaviors. Internal methods make assumptions about internal stuff. I will only look into this issue any further if it also occurs when using Soot properly – see my last e-mail about Transformers.
Best regards,
Steven