test/tools/javac/annotations/repeatingAnnotations/NoRepeatableAnno.java

Mon, 03 Dec 2012 11:16:32 +0100

author
jfranck
date
Mon, 03 Dec 2012 11:16:32 +0100
changeset 1445
376d6c1b49e5
parent 0
959103a6100f
permissions
-rw-r--r--

8001114: Container annotation is not checked for semantic correctness
Reviewed-by: jjg

     1 /**
     2  * @test    /nodynamiccopyright/
     3  * @bug     7169362
     4  * @author  sogoel
     5  * @summary Foo is not a repeatable annotation but used as one.
     6  * @compile/fail/ref=NoRepeatableAnno.out -XDrawDiagnostics NoRepeatableAnno.java
     7  */
     9 @interface Foo {}
    11 @Foo @Foo
    12 public class NoRepeatableAnno {}

mercurial