mcimadamore@970: /* mcimadamore@970: * @test /nodynamiccopyright/ mcimadamore@1901: * @bug 7034511 7040883 7041019 mcimadamore@970: * @summary Loophole in typesafety mcimadamore@970: * @compile/fail/ref=T7034511b.out -XDrawDiagnostics T7034511b.java mcimadamore@970: */ mcimadamore@970: 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: }