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.

Bug 8310 - fastjavac internal compiler error
Summary: fastjavac internal compiler error
Status: CLOSED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: -FFJ-
Hardware: PC Windows ME/2000
: P2 major (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-11-09 10:23 UTC by grahams
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description grahams 2000-11-09 10:23:03 UTC
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" );
    }
}
Comment 1 Svata Dedic 2000-11-09 10:28:59 UTC
*** This bug has been marked as a duplicate of 8309 ***
Comment 2 Quality Engineering 2003-07-01 13:11:40 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.
Comment 3 Quality Engineering 2003-07-01 13:15:40 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.