blob: 0ae45afdb703dc7f2b1fe8a4ed4b6ae559340f27 [file] [log] [blame]
/*
* @test /nodynamiccopyright/
* @bug 6843077 8006775
* @summary check for missing annotation value
* @author Mahmood Ali
* @compile/fail/ref=MissingAnnotationValue.out -XDrawDiagnostics MissingAnnotationValue.java
*/
import java.lang.annotation.*;
class MissingAnnotationValue {
void test() {
String @A [] s;
}
}
@Target(ElementType.TYPE_USE)
@interface A { int field(); }