[Soot-list] JastAdd NullPointer
Frank Otto
otto at ipd.uka.de
Wed Nov 10 05:59:28 EST 2010
Hi list,
I plan to develop analyses using the latest soot-2.4.0 runnable JAR. For
this purpose, I have a main class ("empty" so far) referencing that JAR:
import soot.*;
public class MyAnalysis {
public static void main(String[] args) {
soot.Main.main(args);
}
}
When I run it for an empty test class (standard configuration, using the
JastAdd frontend), I get the following NullPointerException:
-----
Soot started on Wed Nov 10 10:10:15 CET 2010 java.lang.NullPointerException
at
soot.JastAddInitialResolver.resolveFromJavaFile(JastAddInitialResolver.java:
103)
at soot.JavaClassSource.resolve(JavaClassSource.java:57)
at soot.SootResolver.bringToHierarchy(SootResolver.java:194)
at soot.SootResolver.bringToSignatures(SootResolver.java:219)
at soot.SootResolver.processResolveWorklist(SootResolver.java:139)
at soot.SootResolver.resolveClass(SootResolver.java:124)
at soot.Scene.loadClass(Scene.java:425)
at soot.Scene.loadClassAndSupport(Scene.java:410)
at soot.Scene.loadNecessaryClass(Scene.java:1010)
at soot.Scene.loadNecessaryClasses(Scene.java:1024)
at soot.Main.run(Main.java:167)
at soot.Main.main(Main.java:141)
-----
When I run it with the -polyglot option, it works fine:
-----
Soot started on Wed Nov 10 11:54:08 CET 2010 Transforming Test...
Writing to sootOutput\Test.class
Soot finished on Wed Nov 10 11:54:09 CET 2010 Soot has run for 0 min. 1 sec.
-----
What did I do wrong with JastAdd? Sorry if this (probably simple) question
was already discussed somewhere, I haven't found anything related...
Thanks,
Frank
More information about the Soot-list
mailing list