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

Wed, 23 Jan 2013 13:27:24 -0800

author
jjg
date
Wed, 23 Jan 2013 13:27:24 -0800
changeset 1521
71f35e4b93a5
parent 0
959103a6100f
permissions
-rw-r--r--

8006775: JSR 308: Compiler changes in JDK8
Reviewed-by: jjg
Contributed-by: mernst@cs.washington.edu, wmdietl@cs.washington.edu, mpapi@csail.mit.edu, mahmood@notnoop.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