[Soot-list] Soot 2.5 vs current version - Duplicate Member error

Guru Devanla gdevan2 at uic.edu
Mon Oct 28 11:15:29 EDT 2013


Hello Soot-List,

I may be doing something silly here.  I have a command line which goes like
this:

java -cp sootfiles.jar soot.Main -cp <MyAppFiles> -w
 somepackage.package2.A Somepackage.package2.B

My MyAppFiles have the two java files somepackage/package2/A.java and
somepackage/package2/B.java places under respective package

when I run this with soot 2.5 everything runs fine.

When I run with dev branch, I get the following error:

/private/tmp/myapp/somepackage/package2/B.java:3:
  Semantic Error: duplicate member B in compilation unit
Exception in thread "main" 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:226)
 at soot.SootResolver.bringToSignatures(SootResolver.java:250)
at soot.SootResolver.bringToBodies(SootResolver.java:291)
 at soot.SootResolver.processResolveWorklist(SootResolver.java:161)
at soot.SootResolver.resolveClass(SootResolver.java:127)
 at soot.Scene.loadClass(Scene.java:610)
at soot.Scene.loadClassAndSupport(Scene.java:595)
at soot.Scene.loadNecessaryClass(Scene.java:1221)
 at soot.Scene.loadNecessaryClasses(Scene.java:1235)
at soot.Main.run(Main.java:167)
at soot.Main.main(Main.java:141)


I do not see this error if I process .class files directly. So, this seems
to happen only while processing .java files.

I lost some time chasing this bug. Any tips on what I am doing wrong would
help.

Thanks
Guru
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.cs.mcgill.ca/pipermail/soot-list/attachments/20131028/a20dc22a/attachment.html 


More information about the Soot-list mailing list