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 } |