mcimadamore@155: /* jjg@384: * @test /nodynamiccopyright/ mcimadamore@155: * @bug 6711619 mcimadamore@155: * mcimadamore@155: * @summary javac doesn't allow access to protected members in intersection types mcimadamore@155: * @author Maurizio Cimadamore mcimadamore@155: * mcimadamore@155: * @compile/fail/ref=T6711619b.out -XDrawDiagnostics T6711619b.java mcimadamore@155: */ mcimadamore@155: mcimadamore@155: class T6711619b { mcimadamore@155: static class X1> { mcimadamore@155: private int i; mcimadamore@155: E e; mcimadamore@155: int f() { mcimadamore@155: return e.i; mcimadamore@155: } mcimadamore@155: } mcimadamore@155: mcimadamore@155: static class X2> { mcimadamore@155: static private int i; mcimadamore@155: int f() { mcimadamore@155: return E.i; mcimadamore@155: } mcimadamore@155: } mcimadamore@155: mcimadamore@155: static class X3 & java.io.Serializable> { mcimadamore@155: private int i; mcimadamore@155: E e; mcimadamore@155: int f() { mcimadamore@155: return e.i; mcimadamore@155: } mcimadamore@155: } mcimadamore@155: mcimadamore@155: static class X4 & java.io.Serializable> { mcimadamore@155: static private int i; mcimadamore@155: int f() { mcimadamore@155: return E.i; mcimadamore@155: } mcimadamore@155: } jjg@384: }