10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 * @test
26 * @bug 8011940
27 * @summary Test inheritance, order and class redefinition behaviour of RUNTIME
28 * class annotations
29 * @author plevart
30 */
31
32 import sun.reflect.annotation.AnnotationParser;
33
34 import java.lang.annotation.Annotation;
35 import java.lang.annotation.Inherited;
36 import java.lang.annotation.Retention;
37 import java.lang.annotation.RetentionPolicy;
38 import java.lang.reflect.Field;
39 import java.lang.reflect.InvocationTargetException;
40 import java.util.ArrayList;
41 import java.util.Arrays;
42 import java.util.Collections;
43 import java.util.List;
44 import java.util.StringJoiner;
45
46 public class AnnotationsInheritanceOrderRedefinitionTest {
47
48 @Retention(RetentionPolicy.RUNTIME)
49 @Inherited
|
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 * @test
26 * @bug 8011940
27 * @summary Test inheritance, order and class redefinition behaviour of RUNTIME
28 * class annotations
29 * @author plevart
30 * @modules java.base/sun.reflect.annotation
31 */
32
33 import sun.reflect.annotation.AnnotationParser;
34
35 import java.lang.annotation.Annotation;
36 import java.lang.annotation.Inherited;
37 import java.lang.annotation.Retention;
38 import java.lang.annotation.RetentionPolicy;
39 import java.lang.reflect.Field;
40 import java.lang.reflect.InvocationTargetException;
41 import java.util.ArrayList;
42 import java.util.Arrays;
43 import java.util.Collections;
44 import java.util.List;
45 import java.util.StringJoiner;
46
47 public class AnnotationsInheritanceOrderRedefinitionTest {
48
49 @Retention(RetentionPolicy.RUNTIME)
50 @Inherited
|