blob: f3f36165b6419f75c5b2b242c5887c664857fe32 [file] [log] [blame]
/*
* @test /nodynamiccopyright/
* @bug 6843077 6919944 8006775
* @summary check for duplicate annotation values
* @author Mahmood Ali
* @compile/fail/ref=DuplicateAnnotationValue.out -XDrawDiagnostics DuplicateAnnotationValue.java
*/
import java.lang.annotation.*;
class DuplicateAnnotationValue {
void test() {
String[] a = new String @A(value = 2, value = 1) [5] ;
}
}
@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
@interface A { int value(); }