< prev index next >

test/hotspot/jtreg/runtime/constantPool/ConstModule.java

Print this page
rev 47455 : [mq]: jdk-new-hotspot-test.patch

*** 45,61 **** public static void main(String[] args) throws Exception { // Test that the JVM throws CFE for constant pool CONSTANT_Module type, for // class file version 53, when ACC_MODULE is not set in the access_flags. ! ConstModule.write_and_load(Opcodes.V1_9, Opcodes.ACC_INTERFACE + Opcodes.ACC_ABSTRACT + Opcodes.ACC_SYNTHETIC, "jdk.fooMod", "FooMod", MODULE_TEST, CFE_EXCEPTION); // Test that the JVM throws NCDFE for constant pool CONSTANT_Module type, // for class file version 53, when ACC_MODULE is set in the access_flags. ! ConstModule.write_and_load(Opcodes.V1_9, Opcodes.ACC_INTERFACE + Opcodes.ACC_ABSTRACT + Opcodes.ACC_SYNTHETIC + ACC_MODULE, "jdk.fooModACC", "FooModACC", MODULE_TEST, NCDFE_EXCEPTION); // Test that the JVM throws CFE for constant pool CONSTANT_Module type, for // class file version 52, even when ACC_MODULE is set in the access_flags. --- 45,61 ---- public static void main(String[] args) throws Exception { // Test that the JVM throws CFE for constant pool CONSTANT_Module type, for // class file version 53, when ACC_MODULE is not set in the access_flags. ! ConstModule.write_and_load(Opcodes.V9, Opcodes.ACC_INTERFACE + Opcodes.ACC_ABSTRACT + Opcodes.ACC_SYNTHETIC, "jdk.fooMod", "FooMod", MODULE_TEST, CFE_EXCEPTION); // Test that the JVM throws NCDFE for constant pool CONSTANT_Module type, // for class file version 53, when ACC_MODULE is set in the access_flags. ! ConstModule.write_and_load(Opcodes.V9, Opcodes.ACC_INTERFACE + Opcodes.ACC_ABSTRACT + Opcodes.ACC_SYNTHETIC + ACC_MODULE, "jdk.fooModACC", "FooModACC", MODULE_TEST, NCDFE_EXCEPTION); // Test that the JVM throws CFE for constant pool CONSTANT_Module type, for // class file version 52, even when ACC_MODULE is set in the access_flags.
*** 63,79 **** Opcodes.ACC_INTERFACE + Opcodes.ACC_ABSTRACT + Opcodes.ACC_SYNTHETIC + ACC_MODULE, "jdk.fooModACC52", "FooModACC52", MODULE_TEST, CFE_EXCEPTION); // Test that the JVM throws CFE for constant pool CONSTANT_Package type, for // class file version 53, when ACC_MODULE is not set in the access_flags. ! ConstModule.write_and_load(Opcodes.V1_9, Opcodes.ACC_INTERFACE + Opcodes.ACC_ABSTRACT + Opcodes.ACC_SYNTHETIC, "jdk.fooPkg", "FooPkg", PACKAGE_TEST, CFE_EXCEPTION); // Test that the JVM throws NCDFE for constant pool CONSTANT_Package type, // for class file version 53, when ACC_MODULE is set in the access_flags. ! ConstModule.write_and_load(Opcodes.V1_9, Opcodes.ACC_INTERFACE + Opcodes.ACC_ABSTRACT + Opcodes.ACC_SYNTHETIC + ACC_MODULE, "jdk.fooModACC", "FooModACC", PACKAGE_TEST, NCDFE_EXCEPTION); // Test that the JVM throws CFE for constant pool CONSTANT_Package type, for // class file version 52, even when ACC_MODULE is set in the access_flags. --- 63,79 ---- Opcodes.ACC_INTERFACE + Opcodes.ACC_ABSTRACT + Opcodes.ACC_SYNTHETIC + ACC_MODULE, "jdk.fooModACC52", "FooModACC52", MODULE_TEST, CFE_EXCEPTION); // Test that the JVM throws CFE for constant pool CONSTANT_Package type, for // class file version 53, when ACC_MODULE is not set in the access_flags. ! ConstModule.write_and_load(Opcodes.V9, Opcodes.ACC_INTERFACE + Opcodes.ACC_ABSTRACT + Opcodes.ACC_SYNTHETIC, "jdk.fooPkg", "FooPkg", PACKAGE_TEST, CFE_EXCEPTION); // Test that the JVM throws NCDFE for constant pool CONSTANT_Package type, // for class file version 53, when ACC_MODULE is set in the access_flags. ! ConstModule.write_and_load(Opcodes.V9, Opcodes.ACC_INTERFACE + Opcodes.ACC_ABSTRACT + Opcodes.ACC_SYNTHETIC + ACC_MODULE, "jdk.fooModACC", "FooModACC", PACKAGE_TEST, NCDFE_EXCEPTION); // Test that the JVM throws CFE for constant pool CONSTANT_Package type, for // class file version 52, even when ACC_MODULE is set in the access_flags.
< prev index next >