< prev index next >

test/langtools/tools/javac/classfiles/attributes/innerclasses/InnerAnnotationsInInnerClassTest.java

Print this page

26  * @bug 8042251
27  * @summary Testing InnerClasses_attribute of inner annotations in inner class.
28  * @library /tools/lib /tools/javac/lib ../lib
29  * @modules jdk.compiler/com.sun.tools.javac.api
30  *          jdk.compiler/com.sun.tools.javac.main
31  *          jdk.jdeps/com.sun.tools.classfile
32  * @build toolbox.ToolBox InMemoryFileManager TestResult TestBase
33  * @build InnerClassesInInnerClassTestBase InnerClassesTestBase
34  * @run main InnerAnnotationsInInnerClassTest
35  */
36 
37 public class InnerAnnotationsInInnerClassTest extends InnerClassesInInnerClassTestBase {
38 
39     public static void main(String[] args) throws TestFailedException {
40         InnerClassesTestBase test = new InnerAnnotationsInInnerClassTest();
41         test.test("InnerClassesSrc$Inner", "Inner", "1");
42     }
43 
44     @Override
45     public void setProperties() {
46         setInnerOtherModifiers(Modifier.EMPTY, Modifier.ABSTRACT, Modifier.STATIC);
47         setForbiddenWithoutStaticInOuterMods(true);
48         setOuterClassType(ClassType.CLASS);
49         setInnerClassType(ClassType.ANNOTATION);
50     }
51 }

26  * @bug 8042251
27  * @summary Testing InnerClasses_attribute of inner annotations in inner class.
28  * @library /tools/lib /tools/javac/lib ../lib
29  * @modules jdk.compiler/com.sun.tools.javac.api
30  *          jdk.compiler/com.sun.tools.javac.main
31  *          jdk.jdeps/com.sun.tools.classfile
32  * @build toolbox.ToolBox InMemoryFileManager TestResult TestBase
33  * @build InnerClassesInInnerClassTestBase InnerClassesTestBase
34  * @run main InnerAnnotationsInInnerClassTest
35  */
36 
37 public class InnerAnnotationsInInnerClassTest extends InnerClassesInInnerClassTestBase {
38 
39     public static void main(String[] args) throws TestFailedException {
40         InnerClassesTestBase test = new InnerAnnotationsInInnerClassTest();
41         test.test("InnerClassesSrc$Inner", "Inner", "1");
42     }
43 
44     @Override
45     public void setProperties() {
46         setInnerOtherModifiers(Modifier.EMPTY, Modifier.ABSTRACT, Modifier.STATIC, Modifier.IDENTITY);
47         setForbiddenWithoutStaticInOuterMods(true);
48         setOuterClassType(ClassType.CLASS);
49         setInnerClassType(ClassType.ANNOTATION);
50     }
51 }
< prev index next >