8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
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 8335935 8336588 8372047
27 * @summary Testing ClassFile transformations.
28 * @run junit TransformTests
29 */
30
31 import java.lang.classfile.*;
32 import java.lang.classfile.attribute.AnnotationDefaultAttribute;
33 import java.lang.classfile.attribute.ConstantValueAttribute;
34 import java.lang.classfile.attribute.SourceDebugExtensionAttribute;
35 import java.lang.classfile.instruction.BranchInstruction;
36 import java.lang.classfile.instruction.ConstantInstruction;
37 import java.lang.classfile.instruction.LabelTarget;
38 import java.lang.constant.ClassDesc;
39 import java.lang.constant.MethodTypeDesc;
40 import java.lang.reflect.AccessFlag;
41 import java.net.URI;
42 import java.nio.file.Files;
43 import java.nio.file.Path;
44 import java.nio.file.Paths;
45 import java.util.HashSet;
46 import java.util.Set;
47 import java.util.concurrent.atomic.AtomicBoolean;
|
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
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 8335935 8336588 8372047
27 * @summary Testing ClassFile transformations.
28 * @enablePreview
29 * @run junit TransformTests
30 */
31
32 import java.lang.classfile.*;
33 import java.lang.classfile.attribute.AnnotationDefaultAttribute;
34 import java.lang.classfile.attribute.ConstantValueAttribute;
35 import java.lang.classfile.attribute.SourceDebugExtensionAttribute;
36 import java.lang.classfile.instruction.BranchInstruction;
37 import java.lang.classfile.instruction.ConstantInstruction;
38 import java.lang.classfile.instruction.LabelTarget;
39 import java.lang.constant.ClassDesc;
40 import java.lang.constant.MethodTypeDesc;
41 import java.lang.reflect.AccessFlag;
42 import java.net.URI;
43 import java.nio.file.Files;
44 import java.nio.file.Path;
45 import java.nio.file.Paths;
46 import java.util.HashSet;
47 import java.util.Set;
48 import java.util.concurrent.atomic.AtomicBoolean;
|