[Soot-list] Soot RuntimeException
Jochen Huck
jochen.huck at student.kit.edu
Sun Jan 16 06:41:56 EST 2011
Hi,
I finally figured out the code that leads to the strange exception and
want to provide the solution:
Class c = ij!=null?ij.getClass():(new ImageStack()).getClass();
I replaced that line through:
Class c = null;
if (ij != null) {
c = ij.getClass();
} else {
c = (new ImageStack()).getClass();
}
Now everything is fine...
Jochen
Am 20.12.2010 20:19, schrieb Jochen Huck:
> Hi,
>
> thanks for your reply. I assume it is a bug in the JastAdd frontend
> because everything else works fine. I switched to bytecode.
>
> Jochen
>
> Am 20.12.2010 17:41, schrieb Eric Bodden:
>> Hi Jochen.
>>
>>> analyzing source code I got the following exception:
>>>
>>> Exception in thread "Thread-3" java.lang.RuntimeException: couldn't find
>>> class: wildcards.& java.lang.Class<wildcards.? extends ij.ImageJ>&
>>> java.lang.Class<wildcards.? extends ij.ImageStack> (is your
>>> soot-class-path set properly?)
>>> at soot.SootResolver.bringToHierarchy(SootResolver.java:184)
>>> 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)
>> I am unsure. This may be a bug in the JastAdd frontend, or it may be
>> the case that you are indeed missing some classes.
>>
>>> If I switch to the polyglot frontend (-polyglot) it gets even worse (is
>>> the polyglot frontend designed for Java 1.5? I know that thete is
>>> polyglot version that supports Java 1.5 but I don't know wheather this
>>> verison is used in soot)
>> The polyglot frontend cannot cope with Java 5 syntax.
>>
>> Would it be possible for you to analyze bytecode?
>>
>> Eric
> _______________________________________________
> 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