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

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