4 * @author sogoel |
4 * @author sogoel |
5 * @summary ContainerAnnotation does not have FooContainer.class specified |
5 * @summary ContainerAnnotation does not have FooContainer.class specified |
6 * @compile/fail/ref=MissingContainer.out -XDrawDiagnostics MissingContainer.java |
6 * @compile/fail/ref=MissingContainer.out -XDrawDiagnostics MissingContainer.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() |
11 @Repeatable() |
13 @interface Foo {} |
12 @interface Foo {} |
14 |
13 |
15 @ContainerFor(Foo.class) |
|
16 @interface FooContainer { |
14 @interface FooContainer { |
17 Foo[] value(); |
15 Foo[] value(); |
18 } |
16 } |
19 |
17 |
20 @Foo @Foo |
18 @Foo @Foo |