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=T7034511b.out -XDrawDiagnostics T7034511b.java mcimadamore@970: */ mcimadamore@970: jjg@1721: // backing out 7034511, see 7040883 jjg@1721: mcimadamore@970: class T7034511b { mcimadamore@970: static class MyList { mcimadamore@970: E toArray(E[] e) { return null; } mcimadamore@970: } mcimadamore@970: mcimadamore@970: void test(MyList ml, Object o[]) { mcimadamore@970: ml.toArray(o); mcimadamore@970: } mcimadamore@970: }