[Soot-list] Issue instrumenting java 8 bytecode
Marc Miltenberger
Marc.Miltenberger at cased.de
Sun Feb 8 05:54:20 EST 2015
Hi,
the ASM version in soot, which is used to read in Java source code, is
afaik not (fully?) compatible with Java 8 at the moment.
Compile your source files using your favorite Java compiler and try to
use the resulting class files as input for soot instead.
Marc
Am 08.02.2015 um 11:32 schrieb Rashmi Mudduluru:
> Hi,
>
> I am using the latest version of soot to instrument java 8 bytecode.
> I get the following error message:
>
> [java] Soot started on Sun Feb 08 16:23:30 IST 2015
> [java] java.lang.RuntimeException: Failed to convert
> <edu.stanford.nlp.pipeline.StanfordCoreNLP: void
> processFiles(java.lang.String,java.util.Collection,int)>
> [java] at soot.asm.AsmMethodSource.getBody(AsmMethodSource.java:1772)
> [java] at soot.SootMethod.getBodyFromMethodSource(SootMethod.java:91)
> [java] at soot.SootMethod.retrieveActiveBody(SootMethod.java:324)
> [java] at
> soot.jimple.toolkits.annotation.LineNumberAdder.internalTransform(LineNumberAdder.java:44)
> [java] at soot.PackManager.runPacksNormally(PackManager.java:452)
> [java] at soot.PackManager.runPacks(PackManager.java:391)
> [java] at soot.Main.run(Main.java:244)
> [java] at soot.Main.main(Main.java:152)
> [java] at
> javato.instrumentor.TransformClass.processAllAtOnce(TransformClass.java:152)
> [java] at
> javato.activetesting.instrumentor.InstrumentorForActiveTesting.main(InstrumentorForActiveTesting.java:47)
> [java] Caused by: java.lang.RuntimeException:
> [java] Aborting: can't find classfile java.lang.invoke.LambdaMetafactory
> [java] at soot.Scene.getSootClass(Scene.java:777)
> [java] at
> soot.asm.AsmMethodSource.toSootMethodRef(AsmMethodSource.java:1310)
> [java] at
> soot.asm.AsmMethodSource.convertInvokeDynamicInsn(AsmMethodSource.java:1236)
> [java] at soot.asm.AsmMethodSource.convert(AsmMethodSource.java:1605)
> [java] at soot.asm.AsmMethodSource.getBody(AsmMethodSource.java:1770)
> [java] ... 9 more
>
> Does anyone know how this can be solved?
>
> Thanks,
> Rashmi.
>
>
More information about the Soot-list
mailing list