test/tools/javac/generics/7034511/T7034511b.java

changeset 1901
db2c539819dd
parent 1721
abd153854f16
child 2525
2eb010b6cb22
equal deleted inserted replaced
1900:328896931b98 1901:db2c539819dd
1 /* 1 /*
2 * @test /nodynamiccopyright/ 2 * @test /nodynamiccopyright/
3 * @ignore 7041019 Bogus type-variable substitution with array types with dependencies on accessibility check 3 * @bug 7034511 7040883 7041019
4 * @bug 7034511 7040883
5 * @summary Loophole in typesafety 4 * @summary Loophole in typesafety
6 * @compile/fail/ref=T7034511b.out -XDrawDiagnostics T7034511b.java 5 * @compile/fail/ref=T7034511b.out -XDrawDiagnostics T7034511b.java
7 */ 6 */
8
9 // backing out 7034511, see 7040883
10 7
11 class T7034511b { 8 class T7034511b {
12 static class MyList<E> { 9 static class MyList<E> {
13 E toArray(E[] e) { return null; } 10 E toArray(E[] e) { return null; }
14 } 11 }

mercurial