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

changeset 0
959103a6100f
equal deleted inserted replaced
-1:000000000000 0:959103a6100f
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 */
8
9 @interface Foo {}
10
11 @Foo @Foo
12 public class NoRepeatableAnno {}

mercurial