author | mcimadamore |
Wed, 17 Jul 2013 14:14:49 +0100 | |
changeset 18914 | 6edcda38fbdd |
parent 17544 | 80db48a54a9f |
permissions | -rw-r--r-- |
9301 | 1 |
/* |
2 |
* @test /nodynamiccopyright/ |
|
18914
6edcda38fbdd
7041019: Bogus type-variable substitution with array types with dependencies on accessibility check
mcimadamore
parents:
17544
diff
changeset
|
3 |
* @bug 7034511 7040883 7041019 |
9301 | 4 |
* @summary Loophole in typesafety |
5 |
* @compile/fail/ref=T7034511b.out -XDrawDiagnostics T7034511b.java |
|
6 |
*/ |
|
7 |
||
8 |
class T7034511b { |
|
9 |
static class MyList<E> { |
|
10 |
E toArray(E[] e) { return null; } |
|
11 |
} |
|
12 |
||
13 |
void test(MyList<?> ml, Object o[]) { |
|
14 |
ml.toArray(o); |
|
15 |
} |
|
16 |
} |