Community
Participate
Working Groups
Using 1118, I got a ClassFormatError when I tried to run a class that contained a compile error. java.lang.ClassFormatError: org/eclipse/jdt/internal/compiler/parser/Scanner (Invalid start_pc/length in local var table) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:502) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) at java.net.URLClassLoader.defineClass(URLClassLoader.java:250) at java.net.URLClassLoader.access$100(URLClassLoader.java:54) at java.net.URLClassLoader$1.run(URLClassLoader.java:193) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:186) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265) at java.lang.ClassLoader.loadClass(ClassLoader.java:255) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315) at ScannerTest.main(ScannerTest.java:12) Exception in thread "main" This class is the Scanner class having a local variable used. The bug is not in the problem method, but in two other methods. I will investigate in self hosting.
The problem was due to a resize in the byte array and the fact that in some cases I don't store a 0 in the array. Instead I was offset the index by 2. Fixed and released in 2.1 stream.
Verified.