test/langtools/tools/javac/processing/model/element/repeatingAnnotations/MixSingularAndUnofficialContainerInheritedB2Test.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2013, 2019, 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. |
33 * @build JavacTestingAbstractProcessor ElementRepAnnoTester |
33 * @build JavacTestingAbstractProcessor ElementRepAnnoTester |
34 * @compile -processor ElementRepAnnoTester -proc:only |
34 * @compile -processor ElementRepAnnoTester -proc:only |
35 * MixSingularAndUnofficialContainerInheritedB2Test.java |
35 * MixSingularAndUnofficialContainerInheritedB2Test.java |
36 */ |
36 */ |
37 |
37 |
38 @UnofficialInheritedContainer(value = {@FooInherited(value = 1), @FooInherited(value = 2)}) |
38 @UnofficialInheritedContainer({@FooInherited(1), @FooInherited(2)}) |
39 @FooInherited(value = 3) |
39 @FooInherited(3) |
40 class G {} |
40 class G {} |
41 |
41 |
42 @ExpectedBase( |
42 @ExpectedBase( |
43 value = FooInherited.class, |
43 value = FooInherited.class, |
44 getAnnotation = "@FooInherited(value=0)", |
44 getAnnotation = "@FooInherited(0)", |
45 getAnnotationsByType = {"@FooInherited(value=0)"}, |
45 getAnnotationsByType = {"@FooInherited(0)"}, |
46 getAllAnnotationMirrors = { |
46 getAllAnnotationMirrors = { |
47 "@FooInherited(0)", |
47 "@FooInherited(0)", |
48 "@UnofficialInheritedContainer({@FooInherited(1), @FooInherited(2)})", |
48 "@UnofficialInheritedContainer({@FooInherited(1), @FooInherited(2)})", |
49 "ExpectedBase", |
49 "ExpectedBase", |
50 "ExpectedContainer" |
50 "ExpectedContainer" |
55 "ExpectedContainer" |
55 "ExpectedContainer" |
56 }) |
56 }) |
57 @ExpectedContainer( |
57 @ExpectedContainer( |
58 value = UnofficialInheritedContainer.class, |
58 value = UnofficialInheritedContainer.class, |
59 getAnnotation = "@UnofficialInheritedContainer(" |
59 getAnnotation = "@UnofficialInheritedContainer(" |
60 + "value={@FooInherited(value=1), @FooInherited(value=2)})", |
60 + "{@FooInherited(1), @FooInherited(2)})", |
61 getAnnotationsByType = {"@UnofficialInheritedContainer(" |
61 getAnnotationsByType = {"@UnofficialInheritedContainer(" |
62 + "value={@FooInherited(value=1), @FooInherited(value=2)})"}) |
62 + "{@FooInherited(1), @FooInherited(2)})"}) |
63 @FooInherited(value = 0) |
63 @FooInherited(0) |
64 class MixSingularAndUnofficialContainerInheritedB2Test extends G{} |
64 class MixSingularAndUnofficialContainerInheritedB2Test extends G{} |