2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2014-07-17 11:14:39 -07:00
|
|
|
* @test /nodynamiccopyright/
|
2007-12-01 00:00:00 +00:00
|
|
|
* @bug 4972073
|
|
|
|
* @summary same interface allowed twice in compound type
|
2014-07-17 11:14:39 -07:00
|
|
|
* @compile/fail/ref=T4972073b.out -XDrawDiagnostics T4972073b.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
public class T4972073b {
|
|
|
|
|
|
|
|
static class D {}
|
|
|
|
|
|
|
|
static interface MyInterface<E> {
|
|
|
|
public String foo();
|
|
|
|
}
|
|
|
|
|
|
|
|
static class MyClass {}
|
|
|
|
|
|
|
|
static class B<E extends MyClass & MyInterface<E> & MyInterface<E>> extends D {}
|
|
|
|
|
|
|
|
}
|