[Soot-list] Soot Exception, Semantic Error: duplicate member class and package

Tobias Gutzmann tobias.gutzmann at lnu.se
Fri Dec 17 08:41:25 EST 2010


Hi,

I experienced the very same problem before using soot. I cannot analyze
recoder (recoder.sf.net) - there's a class recoder.java.Expression and a
package recoder.java.expression. It doesn't look like a bug in soot
itself but in the third-party library JastAdd. I simply analyzed the
bytecode instead of the source code. Alternatively, use polyglot (but
afaik it only supports up to Java 1.4).

Regards,
Tobias


On 2010-12-17 14:11, Jochen Huck wrote:
> Hi,
>
> The project (ImageJ, http://rsbweb.nih.gov/ij/download/src/, 
> ij144l-src.zip) I am analyzing compiles and runs successfully. I got 
> following exception running soot:
>
> ij\Macro.java:15:
>    Semantic Error: duplicate member class and package Macro
> Exception in thread "Thread-5" soot.CompilationDeathException: there 
> were errors during parsing and/or type checking (JastAdd frontend)
>      at soot.JastAddInitialResolver.formAst(JastAddInitialResolver.java:63)
>      at soot.JavaClassSource.resolve(JavaClassSource.java:54)
>      at soot.SootResolver.bringToHierarchy(SootResolver.java:194)
>      at soot.SootResolver.bringToSignatures(SootResolver.java:219)
>      at soot.SootResolver.bringToBodies(SootResolver.java:260)
>      at soot.SootResolver.processResolveWorklist(SootResolver.java:135)
>      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)
>      at analysis.MainAnalysis.main(MainAnalysis.java:38)
>
> I don't understand the problem. Is it possible that the class ij.Macro 
> is in conflict with the package ij.macro.* ?
>
> Thanks,
>
> Jochen
> _______________________________________________
> Soot-list mailing list
> Soot-list at sable.mcgill.ca
> http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list



More information about the Soot-list mailing list