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=T7034511a.out -XDrawDiagnostics T7034511a.java |
|
6 |
*/ |
|
7 |
||
8 |
class T7034511a { |
|
9 |
||
10 |
interface A<T> { |
|
11 |
void foo(T x); |
|
12 |
} |
|
13 |
||
14 |
interface B<T> extends A<T[]> { } |
|
15 |
||
16 |
static abstract class C implements B<Integer> { |
|
17 |
<T extends B<?>> void test(T x, String[] ss) { |
|
18 |
x.foo(ss); |
|
19 |
} |
|
20 |
} |
|
21 |
} |