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

Fri, 02 Nov 2012 14:35:57 -0700

author
jjg
date
Fri, 02 Nov 2012 14:35:57 -0700
changeset 1386
bf76f4190ef8
parent 0
959103a6100f
permissions
-rw-r--r--

7169362: JDK8: Write compiler tests for repeating annotations for JDK8
Reviewed-by: darcy, jjg
Contributed-by: sonali.goel@oracle.com

     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