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.
1) Create following class: import java.io.*; public class test { static private final boolean DEBUG = false; // Only used when serving via polled I/O: public static void main(String[] args) throws IOException { if (!toto()) { /// whatever } } // Combination of !DEBUG and try that is causing bug static boolean toto() { if (!DEBUG) { return false ; } try { System.out.println("toto"); } catch (Exception e) { return false; } return false; } } 2). Compile with fastjavac fastjavac test.java 3). Run with java vm java -version java version "1.3.0_01" Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0_01) Java HotSpot(TM) Client VM (build 1.3.0_01, mixed mode) java test which generates the following: Exception in thread "main" java.lang.ClassFormatError: test (Invalid pc in line number table) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) *Note: if I compile the code with javac then it works fine. 4) fastjava version: fastjava -version: fastjavac: version 4.0, 11/04/00-10:39, build #461
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. Check the current status on http://developer.java.sun.com/developer/bugParade/bugs/4388684.html
Fixed in Dev-132.
[dev-136] Verified
Resolved for 3.4.x or earlier, no new info since then -> closing.