{ + +} diff --git a/class-model/src/test/java/org/glassfish/hk2/classmodel/reflect/test/method/SomeAnnotation.java b/class-model/src/test/java/org/glassfish/hk2/classmodel/reflect/test/method/SomeAnnotation.java index 0fd0fbf6b0..fa168cf767 100755 --- a/class-model/src/test/java/org/glassfish/hk2/classmodel/reflect/test/method/SomeAnnotation.java +++ b/class-model/src/test/java/org/glassfish/hk2/classmodel/reflect/test/method/SomeAnnotation.java @@ -28,10 +28,20 @@ @Retention(RetentionPolicy.RUNTIME) @Target({METHOD, FIELD, PARAMETER, TYPE}) public @interface SomeAnnotation { - String value() default "default"; - Class>[] aClassArr(); - Class> aClass(); - long aLong(); - int runLevel() default -1; - Class> environment() default Void.class; + + SomeEnum aEnum(); + + ChildAnnotation childAnnotation(); + + String value() default "default"; + + Class>[] aClassArr(); + + Class> aClass(); + + long aLong(); + + int runLevel() default -1; + + Class> environment() default Void.class; } diff --git a/class-model/src/test/java/org/glassfish/hk2/classmodel/reflect/test/method/SomeEnum.java b/class-model/src/test/java/org/glassfish/hk2/classmodel/reflect/test/method/SomeEnum.java new file mode 100644 index 0000000000..3ee7471807 --- /dev/null +++ b/class-model/src/test/java/org/glassfish/hk2/classmodel/reflect/test/method/SomeEnum.java @@ -0,0 +1,27 @@ +/* + * Copyright (c) 2020 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0, which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * This Source Code may also be made available under the following Secondary + * Licenses when the conditions for such availability set forth in the + * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, + * version 2 with the GNU Classpath Exception, which is available at + * https://www.gnu.org/software/classpath/license.html. + * + * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 + */ + +package org.glassfish.hk2.classmodel.reflect.test.method; + +/** + * + * @author gaurav.gupta@payara.fish + */ +public enum SomeEnum { + + ENUM1, + ENUM2; +}