blob: 1503fc4965d1a343ce565795b4b3a1f56f722d57 [file] [log] [blame]
/*
* @test /nodynamiccopyright/
* @bug 8013852
* @summary ensure that declaration annotations are not allowed on
* wildcards
* @author Werner Dietl
* @compile/fail/ref=DeclarationAnnotation.out -XDrawDiagnostics DeclarationAnnotation.java
*/
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
import java.util.List;
class DeclarationAnnotation {
List<@DA ? extends Object> bad;
List<@TA ? extends Object> good;
}
@interface DA { }
@Target(ElementType.TYPE_USE)
@interface TA { }