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.
I don't know which compiler is wrong, rules about inner classes are special. Here is an example: /** * Compiles with fastjavac, not with javac (JDK 1.3.1) or jikes. */ public class CompilerBug5 { private class A { private void a() { } } private class B extends A { private void b() { a(); } } }
Could you please post here build # of the fastjavac compiler (run it with -version parameter) The general rule about symbol accessibility is that access restriction don't apply when both parties (the code which makes a reference and the symbol referenced) are within the same top-level class. In this case, another rule applies as well - private members names are _not inherited_ at all to subtype namespace. So although B extends A, it does not inherit the definition for a() from it.
fastjavac: version 4.0, 04/05/01-17:54, build #525 I don't know which compiler is right, fastjavac or javac, but it would be less confusing if they all apply the same rules.
Has been forwarded to the Sun's fastjavac team.
You may check the status of this bug at http://developer.java.sun.com/developer/bugParade/bugs/4450312.html
Resolved for 3.3.x or earlier, no new info since then -> closing.
Resolved for 3.4.x or earlier, no new info since then -> closing.
A mistakenly closed RESOLVED LATER/REMIND issue. Reopening.
Fastjavac is not supported anymore and since it is a close source there is no reason to keep this as open issue.
Reorganization of java component