--- old/test/java/lang/Class/GetModuleTest.java 2016-06-06 15:05:01.000000000 -0700 +++ new/test/java/lang/Class/GetModuleTest.java 2016-06-06 15:05:01.000000000 -0700 @@ -26,6 +26,7 @@ * @summary Exercise Class#getModule * @modules java.base/jdk.internal.org.objectweb.asm * java.desktop + * jdk.unsupported * @run testng GetModuleTest */ --- old/test/java/lang/instrument/ManyMethodsBenchmarkAgent.java 2016-06-06 15:05:02.000000000 -0700 +++ new/test/java/lang/instrument/ManyMethodsBenchmarkAgent.java 2016-06-06 15:05:02.000000000 -0700 @@ -29,6 +29,7 @@ * * @modules jdk.compiler * java.instrument + * jdk.zipfs * @run build ManyMethodsBenchmarkApp ManyMethodsBenchmarkAgent * @run shell MakeJAR3.sh ManyMethodsBenchmarkAgent 'Can-Retransform-Classes: true' * @run main/othervm -javaagent:ManyMethodsBenchmarkAgent.jar ManyMethodsBenchmarkApp --- old/test/java/lang/instrument/PremainClass/NoPremainAgentTest.java 2016-06-06 15:05:03.000000000 -0700 +++ new/test/java/lang/instrument/PremainClass/NoPremainAgentTest.java 2016-06-06 15:05:02.000000000 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2013, 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 @@ -31,6 +31,7 @@ * @summary test when the agent's class is missing the premain() function. * @library /lib/testlibrary * @modules java.management + * java.instrument * @run build jdk.testlibrary.* DummyMain * @run shell ../MakeJAR3.sh NoPremainAgent * @run main/othervm -XX:-CreateCoredumpOnCrash NoPremainAgentTest --- old/test/java/lang/instrument/PremainClass/ZeroArgPremainAgentTest.java 2016-06-06 15:05:03.000000000 -0700 +++ new/test/java/lang/instrument/PremainClass/ZeroArgPremainAgentTest.java 2016-06-06 15:05:03.000000000 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2013, 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 @@ -31,6 +31,7 @@ * @summary test when the agent's class has a zero arg premain() function. * @library /lib/testlibrary * @modules java.management + * java.instrument * @run build jdk.testlibrary.* DummyMain * @run shell ../MakeJAR3.sh ZeroArgPremainAgent * @run main/othervm -XX:-CreateCoredumpOnCrash ZeroArgPremainAgentTest --- old/test/java/lang/instrument/RedefineMethodInBacktrace.sh 2016-06-06 15:05:04.000000000 -0700 +++ new/test/java/lang/instrument/RedefineMethodInBacktrace.sh 2016-06-06 15:05:04.000000000 -0700 @@ -1,5 +1,5 @@ # -# Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2013, 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 @@ -27,7 +27,7 @@ # @author Stefan Karlsson # # @modules java.instrument -# java.management +# jdk.management # @run shell MakeJAR3.sh RedefineMethodInBacktraceAgent 'Can-Redefine-Classes: true' # @run build RedefineMethodInBacktraceTarget RedefineMethodInBacktraceApp # @run shell RedefineMethodInBacktrace.sh --- old/test/java/lang/invoke/PrivateInvokeTest.java 2016-06-06 15:05:05.000000000 -0700 +++ new/test/java/lang/invoke/PrivateInvokeTest.java 2016-06-06 15:05:05.000000000 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2009, 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 @@ -34,8 +34,6 @@ import java.lang.reflect.*; import java.util.ArrayList; import java.util.Arrays; -import java.util.logging.Level; -import java.util.logging.Logger; import org.junit.*; import static org.junit.Assert.*; --- old/test/java/lang/invoke/modules/ModuleAccessControlTest.java 2016-06-06 15:05:06.000000000 -0700 +++ new/test/java/lang/invoke/modules/ModuleAccessControlTest.java 2016-06-06 15:05:06.000000000 -0700 @@ -26,7 +26,7 @@ import java.util.Arrays; import java.util.List; -import static jdk.testlibrary.ProcessTools.executeTestJava; +import static jdk.testlibrary.ProcessTools.*; import org.testng.annotations.BeforeTest; import org.testng.annotations.Test; @@ -69,8 +69,8 @@ */ @Test public void runTest() throws Exception { - int exitValue = executeTestJava("-mp", MODS_DIR.toString(), - "-m", "m1/p1.Main") + int exitValue = executeProcess(createJavaProcessBuilder("-mp", MODS_DIR.toString(), + "-m", "m1/p1.Main")) .outputTo(System.out) .errorTo(System.out) .getExitValue(); --- old/test/java/lang/reflect/Module/AddExportsTest.java 2016-06-06 15:05:07.000000000 -0700 +++ new/test/java/lang/reflect/Module/AddExportsTest.java 2016-06-06 15:05:07.000000000 -0700 @@ -23,6 +23,7 @@ /** * @test + * @modules java.desktop * @run main/othervm -XaddExports:java.desktop/sun.awt=java.base AddExportsTest * @run main/othervm -XaddExports:java.desktop/sun.awt=ALL-UNNAMED AddExportsTest * @summary Test Module isExported methods with exports changed by -AddExportsTest --- old/test/java/lang/reflect/Module/access/AccessTest.java 2016-06-06 15:05:08.000000000 -0700 +++ new/test/java/lang/reflect/Module/access/AccessTest.java 2016-06-06 15:05:07.000000000 -0700 @@ -35,7 +35,7 @@ /** * @test * @library /lib/testlibrary - * @modules java.compiler + * @modules jdk.compiler * @build AccessTest CompilerUtils jdk.testlibrary.* * @run testng AccessTest * @summary Driver for test that checks access to public members in exported --- old/test/java/lang/reflect/Proxy/ProxyClassAccessTest.java 2016-06-06 15:05:08.000000000 -0700 +++ new/test/java/lang/reflect/Proxy/ProxyClassAccessTest.java 2016-06-06 15:05:08.000000000 -0700 @@ -30,7 +30,7 @@ import java.util.Arrays; import java.util.List; -import static jdk.testlibrary.ProcessTools.executeTestJava; +import static jdk.testlibrary.ProcessTools.*; import org.testng.annotations.BeforeTest; import org.testng.annotations.Test; @@ -73,8 +73,8 @@ */ @Test public void runTest() throws Exception { - int exitValue = executeTestJava("-mp", MODS_DIR.toString(), - "-m", "test/jdk.test.ProxyClassAccess") + int exitValue = executeProcess(createJavaProcessBuilder("-mp", MODS_DIR.toString(), + "-m", "test/jdk.test.ProxyClassAccess")) .outputTo(System.out) .errorTo(System.out) .getExitValue(); --- old/test/java/lang/reflect/Proxy/ProxyTest.java 2016-06-06 15:05:09.000000000 -0700 +++ new/test/java/lang/reflect/Proxy/ProxyTest.java 2016-06-06 15:05:09.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 static jdk.testlibrary.ProcessTools.*; import org.testng.annotations.BeforeTest; import org.testng.annotations.Test; @@ -70,9 +70,9 @@ */ @Test public void runTest() throws Exception { - int exitValue = executeTestJava("-cp", CPATH_DIR.toString(), + int exitValue = executeProcess(createJavaProcessBuilder("-cp", CPATH_DIR.toString(), "-mp", MODS_DIR.toString(), - "-m", "test/jdk.test.Main") + "-m", "test/jdk.test.Main")) .outputTo(System.out) .errorTo(System.out) .getExitValue();