langtools/test/tools/javac/annotations/repeatingAnnotations/NoRepeatableAnno.java
author jjg
Fri, 02 Nov 2012 14:35:57 -0700
changeset 14371 5652321f1ae4
permissions -rw-r--r--
7169362: JDK8: Write compiler tests for repeating annotations for JDK8 Reviewed-by: darcy, jjg Contributed-by: sonali.goel@oracle.com

/**
 * @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 {}