This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
The following class compiles OK with fastjavac (and jikes and javac) A runtime error is throwed only if compiled with fastjavac... public class CompilerBugTwo { public static void main (String[] args) throws Exception { Class c = Toto.class.getDeclaringClass(); System.err.println (c); } } class Toto { private void set (Node node) { node.children[0] = new Node (); } private static class Node { private Node[] children; private Node () { } } } The stack trace: java.lang.ClassFormatError: Toto$1 (Bad superclass index) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:486) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111) at java.net.URLClassLoader.defineClass(URLClassLoader.java:248) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:297) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286) at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) at java.lang.Class.getDeclaringClass(Native Method) at CompilerBugTwo.main(CompilerBugTwo.java:8)
As other team does fastjavac development, there's nothing we can do for fixing the bug than hand over the bug descriptions to the responsible team (already done). We will send out a message to nbusers@ and nbdev@ if/when new release of fastjavac will be available.
Reopening/reassigning to Sustaining team.
Has been forwarded to the Sun's fastjavac team.
Fixed in Dev-132.
[dev-136] Verified
Resolved for 3.4.x or earlier, no new info since then -> closing.