author | jjg |
Fri, 03 May 2013 09:56:56 -0700 | |
changeset 17544 | 80db48a54a9f |
parent 9607 | 94b7adcaccad |
child 18914 | 6edcda38fbdd |
permissions | -rw-r--r-- |
9301 | 1 |
/* |
2 |
* @test /nodynamiccopyright/ |
|
17544
80db48a54a9f
8012728: Normalize @ignore comments on langtools tests
jjg
parents:
9607
diff
changeset
|
3 |
* @ignore 7041019 Bogus type-variable substitution with array types with dependencies on accessibility check |
9607
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=T7034511a.out -XDrawDiagnostics T7034511a.java |
|
7 |
*/ |
|
8 |
||
17544
80db48a54a9f
8012728: Normalize @ignore comments on langtools tests
jjg
parents:
9607
diff
changeset
|
9 |
// backing out 7034511, see 7040883 |
80db48a54a9f
8012728: Normalize @ignore comments on langtools tests
jjg
parents:
9607
diff
changeset
|
10 |
|
9301 | 11 |
class T7034511a { |
12 |
||
13 |
interface A<T> { |
|
14 |
void foo(T x); |
|
15 |
} |
|
16 |
||
17 |
interface B<T> extends A<T[]> { } |
|
18 |
||
19 |
static abstract class C implements B<Integer> { |
|
20 |
<T extends B<?>> void test(T x, String[] ss) { |
|
21 |
x.foo(ss); |
|
22 |
} |
|
23 |
} |
|
24 |
} |