langtools/test/tools/javac/classfiles/attributes/EnclosingMethod/EnclosingMethodTest.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2014, 2016, 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. |
25 * @test |
25 * @test |
26 * @bug 8042931 |
26 * @bug 8042931 |
27 * @summary Checking EnclosingMethod attribute of anonymous/local class. |
27 * @summary Checking EnclosingMethod attribute of anonymous/local class. |
28 * @library /tools/lib /tools/javac/lib ../lib |
28 * @library /tools/lib /tools/javac/lib ../lib |
29 * @modules jdk.compiler/com.sun.tools.javac.api |
29 * @modules jdk.compiler/com.sun.tools.javac.api |
30 * jdk.compiler/com.sun.tools.javac.file |
|
31 * jdk.compiler/com.sun.tools.javac.main |
30 * jdk.compiler/com.sun.tools.javac.main |
32 * jdk.jdeps/com.sun.tools.classfile |
31 * jdk.jdeps/com.sun.tools.classfile |
33 * jdk.jdeps/com.sun.tools.javap |
32 * @build toolbox.ToolBox InMemoryFileManager TestResult TestBase |
34 * @build EnclosingMethodTest TestBase TestResult InMemoryFileManager ToolBox |
|
35 * @run main EnclosingMethodTest |
33 * @run main EnclosingMethodTest |
36 */ |
34 */ |
37 |
35 |
38 import com.sun.tools.classfile.Attribute; |
36 import com.sun.tools.classfile.Attribute; |
39 import com.sun.tools.classfile.ClassFile; |
37 import com.sun.tools.classfile.ClassFile; |