author | duke |
Wed, 05 Jul 2017 16:37:21 +0200 | |
changeset 572 | 18dc4ba4739a |
parent 10 | 06bc494ca11e |
child 6150 | d055fa8ced62 |
permissions | -rw-r--r-- |
/* * @test /nodynamiccopyright/ * @bug 5003235 * @summary Private inner class accessible from subclasses * @author Peter von der Ah\u00e9 * @compile/fail/ref=T5003235a.out -XDstdout -XDdiags=%b:%l:%_%m T5003235a.java */ class Super { Inner i; private class Inner { void defaultM() {} protected void protectedM() {} public void publicM() {} private void privateM() {} } } class Sub extends Super { void foo() { i.defaultM(); i.protectedM(); i.publicM(); i.privateM(); } }