Assume the following class:

public class Test {
    public int foo = 12;
    public static class SubTest extends Test {
        public void test() {
            System.out.println(foo);
        }
    }
}

IDEA suggests that foo could be made private.  If I make it private, 
javac complains about trying to access foo() inside test().  I don't 
know if this is a bug in IDEA (foo should not be made private) or in 
javac (nested subclass should be allowed to access private members of 
the superclass).



_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list

Reply via email to