langtools/test/tools/javac/generics/7034511/T7034511b.java
changeset 17544 80db48a54a9f
parent 9607 94b7adcaccad
child 18914 6edcda38fbdd
equal deleted inserted replaced
17286:fec581c36de4 17544:80db48a54a9f
     1 /*
     1 /*
     2  * @test /nodynamiccopyright/
     2  * @test /nodynamiccopyright/
     3  * @ignore backing out 7034511, see 7040883
     3  * @ignore 7041019 Bogus type-variable substitution with array types with dependencies on accessibility check
     4  * @bug     7034511 7040883
     4  * @bug     7034511 7040883
     5  * @summary Loophole in typesafety
     5  * @summary Loophole in typesafety
     6  * @compile/fail/ref=T7034511b.out -XDrawDiagnostics T7034511b.java
     6  * @compile/fail/ref=T7034511b.out -XDrawDiagnostics T7034511b.java
     7  */
     7  */
       
     8 
       
     9 // backing out 7034511, see 7040883
     8 
    10 
     9 class T7034511b {
    11 class T7034511b {
    10     static class MyList<E> {
    12     static class MyList<E> {
    11         E toArray(E[] e) { return null; }
    13         E toArray(E[] e) { return null; }
    12     }
    14     }