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.
This bit of code produces an internal compiler error with fastjavac but compiles fine with javac? If you set the value in the if statement to false it compiles. If you make a comparason that has to be evaluated at runtime eg x == 5 then it compiles fine. It only fails if the if equates to true at compile time eg removing the ability to set a final boolean DEBUG flag. I have confirmed this fail on two machines both running Forte 849 and win2k. public class CompilerError { static { if( true )System.out.println( "This is not a compiler error" ); } }
*** This bug has been marked as a duplicate of 8309 ***
Resolved for 3.3.x or earlier, no new info since then -> closing.
Resolved for 3.4.x or earlier, no new info since then -> closing.