diff -r 75c936d14c6a -r bf76f4190ef8 test/tools/javac/annotations/repeatingAnnotations/NoRepeatableAnno.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/tools/javac/annotations/repeatingAnnotations/NoRepeatableAnno.java Fri Nov 02 14:35:57 2012 -0700 @@ -0,0 +1,12 @@ +/** + * @test /nodynamiccopyright/ + * @bug 7169362 + * @author sogoel + * @summary Foo is not a repeatable annotation but used as one. + * @compile/fail/ref=NoRepeatableAnno.out -XDrawDiagnostics NoRepeatableAnno.java + */ + +@interface Foo {} + +@Foo @Foo +public class NoRepeatableAnno {}