mcimadamore@970: /* mcimadamore@970: * @test /nodynamiccopyright/ jjg@1721: * @ignore 7041019 Bogus type-variable substitution with array types with dependencies on accessibility check mcimadamore@996: * @bug 7034511 7040883 mcimadamore@970: * @summary Loophole in typesafety mcimadamore@970: * @compile/fail/ref=T7034511a.out -XDrawDiagnostics T7034511a.java mcimadamore@970: */ mcimadamore@970: jjg@1721: // backing out 7034511, see 7040883 jjg@1721: mcimadamore@970: class T7034511a { mcimadamore@970: mcimadamore@970: interface A { mcimadamore@970: void foo(T x); mcimadamore@970: } mcimadamore@970: mcimadamore@970: interface B extends A { } mcimadamore@970: mcimadamore@970: static abstract class C implements B { mcimadamore@970: > void test(T x, String[] ss) { mcimadamore@970: x.foo(ss); mcimadamore@970: } mcimadamore@970: } mcimadamore@970: }