langtools/test/tools/javac/annotations/repeatingAnnotations/MissingValueMethod.java
equal
deleted
inserted
replaced
4 * @author sogoel |
4 * @author sogoel |
5 * @summary Missing value() method in ContainerAnnotation |
5 * @summary Missing value() method in ContainerAnnotation |
6 * @compile/fail/ref=MissingValueMethod.out -XDrawDiagnostics MissingValueMethod.java |
6 * @compile/fail/ref=MissingValueMethod.out -XDrawDiagnostics MissingValueMethod.java |
7 */ |
7 */ |
8 |
8 |
9 import java.lang.annotation.ContainedBy; |
9 import java.lang.annotation.Repeatable; |
10 import java.lang.annotation.ContainerFor; |
|
11 |
10 |
12 @ContainedBy(FooContainer.class) |
11 @Repeatable(FooContainer.class) |
13 @interface Foo {} |
12 @interface Foo {} |
14 |
13 |
15 @ContainerFor(Foo.class) |
|
16 @interface FooContainer{ |
14 @interface FooContainer{ |
17 Foo[] values(); // wrong method name |
15 Foo[] values(); // wrong method name |
18 } |
16 } |
19 |
17 |
20 @Foo @Foo |
18 @Foo @Foo |