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 15671 - Fastjavac: incompatibility with Javac
Summary: Fastjavac: incompatibility with Javac
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Windows 3.1/NT
: P2 blocker (vote)
Assignee: Jan Kovar
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-09-20 09:25 UTC by klosels
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 klosels 2001-09-20 09:25:24 UTC
In some cases Fastjavac compiles sources without errors which will not
be compiled by Sun JDK's Javac.

Following is the code which shows this behaviour. 
If the visibility of the top level inner class "StaticInnerClass" in the baseclass
"FastJavacBugTestA_Base" is private, javac shows this error when compiling 
the derived class "FastJavacTestA_Derived":

FastJavacBugTestA_Derived.java [19:1] doNothing() inFastJavacBugTestA_Base.StaticInnerClass is not defined in a public
class or interface; cannot be accessed from outside package

In contrary, FastJavac compiles the same code without errors (which shouldn't 
be the case).

If the visibility of the top level inner class "StaticInnerClass" in the baseclass 
is changed (to anything else than private), the code is correctly compiled by both compilers.

Test Code:

public class FastJavacBugTestA_Base {

    protected StaticInnerClass member;
    
    public FastJavacBugTestA_Base() {
        member = new StaticInnerClass();
    }
    
    private static class StaticInnerClass {
        public void doNothing() {
        }
    }
}


public class FastJavacBugTestA_Derived extends FastJavacBugTestA_Base {

    public FastJavacBugTestA_Derived() {
        super();
        member.doNothing();
    }
}
Comment 1 Tomas Hurka 2001-09-20 09:34:14 UTC
Assigning to Ivan Bradac
Comment 2 Svata Dedic 2001-10-23 08:21:33 UTC
Changing subcomponent & issue owner. Honzo, can you please note here
whether you've already contacted fastjavac team with this issue and if
so what's the BugParade BugID ?
Comment 3 Svata Dedic 2001-10-23 08:25:02 UTC
Eeee... sorry, both Jirka and Honza. Mozilla has autocompleted the
e-mail after I've typed jk. I should be more careful next time.
Comment 4 Jan Kovar 2001-10-24 10:31:32 UTC
Has been forwarded to the Sun's fastjavac team.
Comment 5 Quality Engineering 2003-07-01 13:11:03 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.
Comment 6 Quality Engineering 2003-07-01 13:20:50 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.
Comment 7 Jan Chalupa 2003-10-30 12:06:45 UTC
A mistakenly closed RESOLVED LATER/REMIND issue. Reopening.
Comment 8 Jan Pokorsky 2003-12-05 10:57:15 UTC
Fastjavac is not supported anymore and since it is a close source there is no
reason to keep this as open issue.
Comment 9 Quality Engineering 2007-09-20 10:50:26 UTC
Reorganization of java component