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" ); } }
Appears in the main trunk, and f4j 2.0 too.
*** Bug 8310 has been marked as a duplicate of this bug. ***
Further tests show that all clauses that can be evaluated at compile time produce SIGSEGV. It seems that dead code elimination routines have some troubles.
forgot to include this in the first post :) What the compiler says --> fastjavac: Internal compiler error, SEGV, ILL, or FPE abnormal program termination
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.
[release32-6] Verified
Target milestone -> 3.2
Resolved for 3.4.x or earlier, no new info since then -> closing.