test/tools/javac/annotations/typeAnnotations/failures/common/receiver/MissingAnnotationValue.java

changeset 0
959103a6100f
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/test/tools/javac/annotations/typeAnnotations/failures/common/receiver/MissingAnnotationValue.java	Wed Apr 27 01:34:52 2016 +0800
     1.3 @@ -0,0 +1,12 @@
     1.4 +/*
     1.5 + * @test /nodynamiccopyright/
     1.6 + * @bug 6843077 8006775
     1.7 + * @summary check for missing annotation value
     1.8 + * @author Mahmood Ali
     1.9 + * @compile/fail/ref=MissingAnnotationValue.out -XDrawDiagnostics MissingAnnotationValue.java
    1.10 + */
    1.11 +class MissingAnnotationValue {
    1.12 +  void test(@A MissingAnnotationValue this) { }
    1.13 +}
    1.14 +
    1.15 +@interface A { int field(); }

mercurial