Error loading java.util.Arrays.
Issue #122
resolved
I'm running current master (999541
), but I experienced this issue also with significantly older versions. When traversing the AST of the attached file, e.g., using doFullTraversal() or by using the pretty-printer, I get this error:
Exception in thread "main" java.lang.Error: Error loading /usr/lib/jvm/jdk-8-oracle-x64/jre/lib/rt.jar:java/util/Arrays.class
Also, the JVM is shut down. I'm running oracle jdk version 1.8.0_51 on debian unstable. Compiling the file with javac works fine.
Comments (3)
-
-
- changed status to resolved
-
reporter Thanks very much for the quick help! Works perfectly!
- Log in to comment
This is caused by trying to parse the Java 8 class library using the Java 7 bytecode parser. There is currently no checking of MAJOR/MINOR version of classfiles in the ExtendJ bytecode parser, so it crashes during parsing. This should be fixed so you at least get a readable error message.