< prev index next >

test/hotspot/jtreg/runtime/InvocationTests/invokevirtualTests.java

Print this page
rev 59076 : [mq]: 8243945

*** 32,51 **** * @compile shared/AbstractGenerator.java shared/AccessCheck.java shared/AccessType.java * shared/Caller.java shared/ExecutorGenerator.java shared/Utils.java * shared/ByteArrayClassLoader.java shared/Checker.java shared/GenericClassGenerator.java * @compile invokevirtual/Checker.java invokevirtual/ClassGenerator.java invokevirtual/Generator.java * ! * @run main/othervm/timeout=1800 invokevirtualTests */ import jdk.test.lib.process.ProcessTools; import jdk.test.lib.process.OutputAnalyzer; import jdk.test.lib.compiler.InMemoryJavaCompiler; public class invokevirtualTests { ! public static void runTest(String classFileVersion, String option) throws Exception { System.out.println("\ninvokevirtual invocation tests, option: " + option + ", class file version: " + classFileVersion); ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(false, "-Xmx128M", option, "--add-exports", "java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED", "invokevirtual.Generator", "--classfile_version=" + classFileVersion); --- 32,51 ---- * @compile shared/AbstractGenerator.java shared/AccessCheck.java shared/AccessType.java * shared/Caller.java shared/ExecutorGenerator.java shared/Utils.java * shared/ByteArrayClassLoader.java shared/Checker.java shared/GenericClassGenerator.java * @compile invokevirtual/Checker.java invokevirtual/ClassGenerator.java invokevirtual/Generator.java * ! * @run driver/timeout=1800 invokevirtualTests */ import jdk.test.lib.process.ProcessTools; import jdk.test.lib.process.OutputAnalyzer; import jdk.test.lib.compiler.InMemoryJavaCompiler; public class invokevirtualTests { ! public static void runTest(String classFileVersion, String option) throws Throwable { System.out.println("\ninvokevirtual invocation tests, option: " + option + ", class file version: " + classFileVersion); ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(false, "-Xmx128M", option, "--add-exports", "java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED", "invokevirtual.Generator", "--classfile_version=" + classFileVersion);
*** 61,71 **** " means that an AbstractMethodError exception was thrown but the test" + " case expected method C.m to be invoked."); System.out.println( "\nAlso note that passing --dump to invokevirtual.Generator will" + " dump the generated classes (for debugging purposes).\n"); ! System.exit(1); } } public static void main(String args[]) throws Throwable { // Get current major class file version and test with it. --- 61,72 ---- " means that an AbstractMethodError exception was thrown but the test" + " case expected method C.m to be invoked."); System.out.println( "\nAlso note that passing --dump to invokevirtual.Generator will" + " dump the generated classes (for debugging purposes).\n"); ! ! throw e; } } public static void main(String args[]) throws Throwable { // Get current major class file version and test with it.
< prev index next >