Mon, 03 Dec 2012 11:16:32 +0100
8001114: Container annotation is not checked for semantic correctness
Reviewed-by: jjg
aoqi@0 | 1 | /** |
aoqi@0 | 2 | * @test /nodynamiccopyright/ |
aoqi@0 | 3 | * @bug 7169362 |
aoqi@0 | 4 | * @author sogoel |
aoqi@0 | 5 | * @summary Foo is not a repeatable annotation but used as one. |
aoqi@0 | 6 | * @compile/fail/ref=NoRepeatableAnno.out -XDrawDiagnostics NoRepeatableAnno.java |
aoqi@0 | 7 | */ |
aoqi@0 | 8 | |
aoqi@0 | 9 | @interface Foo {} |
aoqi@0 | 10 | |
aoqi@0 | 11 | @Foo @Foo |
aoqi@0 | 12 | public class NoRepeatableAnno {} |