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

changeset 1386
bf76f4190ef8
parent 0
959103a6100f
equal deleted inserted replaced
1385:75c936d14c6a 1386:bf76f4190ef8
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