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

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

mercurial