langtools/test/tools/javac/annotations/repeatingAnnotations/ClassReaderDefault.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
28 * |
28 * |
29 * @clean ClassReaderDefault SeparateCompile |
29 * @clean ClassReaderDefault SeparateCompile |
30 * @compile ClassReaderDefault.java |
30 * @compile ClassReaderDefault.java |
31 * @compile SeparateCompile.java |
31 * @compile SeparateCompile.java |
32 */ |
32 */ |
33 import java.lang.annotation.ContainedBy; |
33 import java.lang.annotation.Repeatable; |
34 import java.lang.annotation.ContainerFor; |
|
35 |
34 |
36 public class ClassReaderDefault { |
35 public class ClassReaderDefault { |
37 } |
36 } |
38 |
37 |
39 @ContainerFor(Foo.class) |
|
40 @interface FooContainer { |
38 @interface FooContainer { |
41 Foo[] value(); |
39 Foo[] value(); |
42 int f() default 0; |
40 int f() default 0; |
43 } |
41 } |
44 |
42 |
45 @ContainedBy(FooContainer.class) |
43 @Repeatable(FooContainer.class) |
46 @interface Foo {} |
44 @interface Foo {} |