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 10845 - Undetected Compilation error in inner classes with fastjavac
Summary: Undetected Compilation error in inner classes with fastjavac
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Ivan Bradac
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-03-29 19:54 UTC by Ascander Suarez
Modified: 2007-09-26 09:14 UTC (History)
1 user (show)

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 Ascander Suarez 2001-03-29 19:54:44 UTC
NetBeans IDE 3.1 (build 34)

java version "1.3.1-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-beta-b15)
Java HotSpot(TM) Client VM (build 1.3.1beta-b15, mixed mode)                    

fastjavac: version 4.0, "11/04/00-10:39", build #461

A static inner class cannot extend a non static inner clas!

However, fatjavac compiles with no errors and produces a .class file 
which cannot be loaded and produces the followin error:

Exception in thread "main" java.lang.VerifyError: (class: InnerClassBugTest,
method: main signature: ([Ljava/lang/String;)V) Expecting to find object/array
on stack


The external java compiler correctly detects the error.

Here is a buggy java file with the error.


------------------------------
public class InnerClassBugTest {
    
    
    public InnerClassBugTest() {
    }
    
    // This inner class should be static
    public class father {
        
    }
    
    public static class son extends father {
        public son() {}
    }
    
    public static void main(String[] args) {
        new son();
    }
    
}
Comment 1 Jan Zajicek 2001-04-30 12:00:32 UTC
I have thought that Ivan have already reported this to the fastjavac. Ivan, if
so, please close this with reference. Thanks.
Comment 2 Ivan Bradac 2001-04-30 12:51:58 UTC
Has been forwarded to the Sun's fastjavac team.
Comment 3 Ivan Bradac 2001-06-28 11:33:39 UTC
The current status can be checked on
http://developer.java.sun.com/developer/bugParade/bugs/4453704.html 
Comment 4 Quality Engineering 2003-07-01 13:11:22 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.
Comment 5 Quality Engineering 2003-07-01 13:15:20 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.
Comment 6 Jan Chalupa 2003-10-30 12:06:49 UTC
A mistakenly closed RESOLVED LATER/REMIND issue. Reopening.
Comment 7 Jan Pokorsky 2003-12-05 10:57:05 UTC
Fastjavac is not supported anymore and since it is a close source there is no
reason to keep this as open issue.
Comment 8 Quality Engineering 2007-09-20 09:44:14 UTC
Reorganization of java component