13 lines
289 B
Java
Raw Normal View History

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