blob: 2230767d30079f5d6f5da6fbb3f8cc03c711ecf8 [file] [log] [blame]
/*
* @test /nodynamiccopyright/
* @bug 6843077 6919944 8006775
* @summary check for duplicate annotation values for type parameter
* @author Mahmood Ali
* @compile/fail/ref=DuplicateAnnotationValue.out -XDrawDiagnostics DuplicateAnnotationValue.java
*/
import java.lang.annotation.*;
class DuplicateAnnotationValue {
void method() {
class Inner<@A(value = 2, value = 1) K> {}
}
}
@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
@interface A { int value(); }