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 13626 - fastjavac compiles non-static method access from a static inner class
Summary: fastjavac compiles non-static method access from a static inner class
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Windows 3.1/NT
: P3 blocker (vote)
Assignee: Ivan Bradac
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-07-16 12:37 UTC by onivy
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 onivy 2001-07-16 12:37:45 UTC
the following erroneous class compiles with no errors with fastjavac:
public class FastJavacBugTest {
    public void func(){
        System.out.println("func");
    }
    
    public static void main(String[] args) throws Exception{
        new Inner().func2();
    }
    
    public static class Inner{
        public void func2(){
            func(); 
        }
    }
}

when running the class the following error appears:
java.lang.VerifyError: (class: FastJavacBugTest$Inner, method: func2 signature: 
()V) Incompatible object argument for function call
        at FastJavacBugTest.main(FastJavacBugTest.java:7)
Exception in thread "main" 

when compiling with javac.exe (modern) the following compilation error appears:
FastJavacBugTest.java [12:1] non-static method func() cannot be referenced from 
a static context
            func(); 
            ^
1 error
Errors compiling FastJavacBugTest.
Comment 1 Tomas Hurka 2001-07-16 12:41:48 UTC
NO COMMENT
Comment 2 Ivan Bradac 2001-07-23 11:49:33 UTC
Forwarded to the Sun's fastjavac team - it is a variant of
http://developer.java.sun.com/developer/bugParade/bugs/4447298.html
Comment 3 Quality Engineering 2003-07-01 13:12:11 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.
Comment 4 Quality Engineering 2003-07-01 13:20:26 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.
Comment 5 Jan Chalupa 2003-10-30 12:07:34 UTC
A mistakenly closed RESOLVED LATER/REMIND issue. Reopening.
Comment 6 Jan Pokorsky 2003-12-05 10:57:08 UTC
Fastjavac is not supported anymore and since it is a close source there is no
reason to keep this as open issue.
Comment 7 Quality Engineering 2007-09-20 09:52:24 UTC
Reorganization of java component