--- old/test/java/lang/reflect/Proxy/ProxyTest.java 2016-10-26 11:30:43.000000000 -0700 +++ new/test/java/lang/reflect/Proxy/ProxyTest.java 2016-10-26 11:30:43.000000000 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -26,7 +26,7 @@ import java.util.Arrays; import java.util.List; -import static jdk.testlibrary.ProcessTools.executeTestJava; +import jdk.testlibrary.tasks.JavaTask; import org.testng.annotations.BeforeTest; import org.testng.annotations.Test; @@ -36,7 +36,7 @@ * @test * @library /lib/testlibrary * @modules jdk.compiler - * @build ProxyTest q.U CompilerUtils jdk.testlibrary.* + * @build ProxyTest q.U CompilerUtils jdk.testlibrary.tasks.JavaTask * @run testng ProxyTest * @summary Driver for testing proxies accessing interfaces in named modules */ @@ -69,14 +69,11 @@ * Run the modular test */ @Test - public void runTest() throws Exception { - int exitValue = executeTestJava("-cp", CPATH_DIR.toString(), - "--module-path", MODS_DIR.toString(), - "-m", "test/jdk.test.Main") - .outputTo(System.out) - .errorTo(System.out) - .getExitValue(); - - assertTrue(exitValue == 0); + public void runTest() { + new JavaTask().ignoreStandardModuleOptions() + .classPath(CPATH_DIR) + .modulePath(MODS_DIR) + .module("test", "jdk.test.Main") + .run(); } }