blob: be8f479fedfe59789a6b24078e6508eb9f326d94 [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() {
String[] a = new String @A @A [5] ;
}
}
@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
@interface A { }