< prev index next >

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

Print this page
rev 59076 : [mq]: 8243945

@@ -33,20 +33,20 @@
  *          shared/Caller.java shared/ExecutorGenerator.java shared/Utils.java
  *          shared/ByteArrayClassLoader.java shared/Checker.java shared/GenericClassGenerator.java
  * @compile invokeinterface/Checker.java invokeinterface/ClassGenerator.java
  *          invokeinterface/Generator.java
  *
- * @run main/othervm/timeout=1800 invokeinterfaceTests
+ * @run driver/timeout=1800 invokeinterfaceTests
  */
 
 import jdk.test.lib.process.ProcessTools;
 import jdk.test.lib.process.OutputAnalyzer;
 import jdk.test.lib.compiler.InMemoryJavaCompiler;
 
 public class invokeinterfaceTests {
 
-    public static void runTest(String classFileVersion, String option) throws Exception {
+    public static void runTest(String classFileVersion, String option) throws Throwable {
         System.out.println("\ninvokeinterface 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",
             "invokeinterface.Generator", "--classfile_version=" + classFileVersion);

@@ -63,11 +63,11 @@
                 " case expected method C.m to be invoked.");
             System.out.println(
                 "\nAlso note that passing --dump to invokeinterface.Generator will" +
                 " dump the generated classes (for debugging purposes).\n");
 
-            System.exit(1);
+            throw e;
         }
     }
 
     public static void main(String args[]) throws Throwable {
         // Get current major class file version and test with it.
< prev index next >