blob: 014490f6104476d8487cfebe04b4748f787ee828 [file] [log] [blame]
/*
* @test /nodynamiccopyright/
* @bug 6843077 8006775
* @summary check for duplicate annotations
* @author Mahmood Ali
* @compile/fail/ref=DuplicateTypeAnnotation.out -XDrawDiagnostics DuplicateTypeAnnotation.java
*/
import java.lang.annotation.*;
class DuplicateTypeAnnotation {
void test() {
new @A @A String();
}
}
@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
@interface A { }