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

changeset 1386
bf76f4190ef8
parent 0
959103a6100f
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/test/tools/javac/annotations/repeatingAnnotations/NoRepeatableAnno.java	Fri Nov 02 14:35:57 2012 -0700
     1.3 @@ -0,0 +1,12 @@
     1.4 +/**
     1.5 + * @test    /nodynamiccopyright/
     1.6 + * @bug     7169362
     1.7 + * @author  sogoel
     1.8 + * @summary Foo is not a repeatable annotation but used as one.
     1.9 + * @compile/fail/ref=NoRepeatableAnno.out -XDrawDiagnostics NoRepeatableAnno.java
    1.10 + */
    1.11 +
    1.12 +@interface Foo {}
    1.13 +
    1.14 +@Foo @Foo
    1.15 +public class NoRepeatableAnno {}

mercurial