author | mcimadamore |
Mon, 02 May 2011 12:05:41 +0100 | |
changeset 9607 | 94b7adcaccad |
parent 9301 | da48f63f0b22 |
child 17544 | 80db48a54a9f |
permissions | -rw-r--r-- |
9301 | 1 |
/* |
2 |
* @test /nodynamiccopyright/ |
|
9607
94b7adcaccad
7040883: Compilation error: "length in Array is defined in an inaccessible class or interface"
mcimadamore
parents:
9301
diff
changeset
|
3 |
* @ignore backing out 7034511, see 7040883 |
94b7adcaccad
7040883: Compilation error: "length in Array is defined in an inaccessible class or interface"
mcimadamore
parents:
9301
diff
changeset
|
4 |
* @bug 7034511 7040883 |
9301 | 5 |
* @summary Loophole in typesafety |
6 |
* @compile/fail/ref=T7034511b.out -XDrawDiagnostics T7034511b.java |
|
7 |
*/ |
|
8 |
||
9 |
class T7034511b { |
|
10 |
static class MyList<E> { |
|
11 |
E toArray(E[] e) { return null; } |
|
12 |
} |
|
13 |
||
14 |
void test(MyList<?> ml, Object o[]) { |
|
15 |
ml.toArray(o); |
|
16 |
} |
|
17 |
} |