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 8309 - fastjavac internal compiler error
Summary: fastjavac internal compiler error
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P2 major (vote)
Assignee: Ivan Bradac
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-11-09 10:21 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:21:43 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:27:59 UTC
Appears in the main trunk, and f4j 2.0 too.
Comment 2 Svata Dedic 2000-11-09 10:28:59 UTC
*** Bug 8310 has been marked as a duplicate of this bug. ***
Comment 3 Svata Dedic 2000-11-09 10:31:59 UTC
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.
Comment 4 grahams 2000-11-09 10:43:59 UTC
forgot to include this in the first post :) What the compiler says -->

fastjavac: Internal compiler error, SEGV, ILL, or FPE

abnormal program termination
Comment 5 Svata Dedic 2001-01-17 16:00:59 UTC
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.
Comment 6 Svata Dedic 2001-02-14 13:57:59 UTC
Reopening/reassigning to Sustaining team.
Comment 7 Ivan Bradac 2001-02-16 11:46:11 UTC
Has been forwarded to the Sun's fastjavac team.
Comment 8 Ivan Bradac 2001-02-27 09:55:47 UTC
Fixed in Dev-132.
Comment 9 Ivan Bradac 2001-02-27 09:56:21 UTC
Fixed in Dev-132.
Comment 10 Jan Becicka 2001-03-16 09:33:19 UTC
[release32-6] Verified
Comment 11 Jan Chalupa 2001-05-05 23:23:19 UTC
Target milestone -> 3.2
Comment 12 Quality Engineering 2003-07-01 13:14:55 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.