jdk-24/test/langtools/tools/javac/generics/Multibound1.java

17 lines
321 B
Java
Raw Normal View History

2007-12-01 00:00:00 +00:00
/*
* @test /nodynamiccopyright/
2007-12-01 00:00:00 +00:00
* @bug 4482403
* @summary javac failed to check second bound
* @author gafter
*
* @compile/fail/ref=Multibound1.out -XDrawDiagnostics Multibound1.java
2007-12-01 00:00:00 +00:00
*/
package Multibound1;
2007-12-01 00:00:00 +00:00
interface A {}
interface B {}
class C<T extends A&B> {}
class D implements A {}
class E extends C<D> {}