author | dlsmith |
Wed, 14 Dec 2016 17:56:11 -0700 | |
changeset 42819 | 4ce83e629dc1 |
parent 25693 | b9f1261db3b4 |
permissions | -rw-r--r-- |
10 | 1 |
/* |
25693
b9f1261db3b4
8048836: .out files for generics tests in tools/javac dir
sogoel
parents:
5520
diff
changeset
|
2 |
* @test /nodynamiccopyright/ |
10 | 3 |
* @bug 4972073 |
4 |
* @summary same interface allowed twice in compound type |
|
25693
b9f1261db3b4
8048836: .out files for generics tests in tools/javac dir
sogoel
parents:
5520
diff
changeset
|
5 |
* @compile/fail/ref=T4972073b.out -XDrawDiagnostics T4972073b.java |
10 | 6 |
*/ |
7 |
||
8 |
public class T4972073b { |
|
9 |
||
10 |
static class D {} |
|
11 |
||
12 |
static interface MyInterface<E> { |
|
13 |
public String foo(); |
|
14 |
} |
|
15 |
||
16 |
static class MyClass {} |
|
17 |
||
18 |
static class B<E extends MyClass & MyInterface<E> & MyInterface<E>> extends D {} |
|
19 |
||
20 |
} |