8155086: Replace usage of -Djdk.launcher.limitmods in tests with -limitmods
Reviewed-by: alanb
--- a/jdk/test/java/net/SocketOption/OptionsTest.java Tue May 24 15:58:58 2016 +0800
+++ b/jdk/test/java/net/SocketOption/OptionsTest.java Tue May 24 09:18:40 2016 +0100
@@ -26,7 +26,7 @@
* @bug 8036979 8072384 8044773
* @run main/othervm -Xcheck:jni OptionsTest
* @run main/othervm -Xcheck:jni -Djava.net.preferIPv4Stack=true OptionsTest
- * @run main/othervm -Djdk.launcher.limitmods=java.base OptionsTest
+ * @run main/othervm -limitmods java.base OptionsTest
*/
import java.lang.reflect.Method;
--- a/jdk/test/java/net/SocketOption/UnsupportedOptionsTest.java Tue May 24 15:58:58 2016 +0800
+++ b/jdk/test/java/net/SocketOption/UnsupportedOptionsTest.java Tue May 24 09:18:40 2016 +0100
@@ -33,7 +33,7 @@
* @summary Test checks that UnsupportedOperationException for unsupported
* SOCKET_OPTIONS is thrown by both getOption() and setOption() methods.
* @run main UnsupportedOptionsTest
- * @run main/othervm -Djdk.launcher.limitmods=java.base UnsupportedOptionsTest
+ * @run main/othervm -limitmods java.base UnsupportedOptionsTest
*/
public class UnsupportedOptionsTest {
--- a/jdk/test/java/nio/channels/DatagramChannel/SocketOptionTests.java Tue May 24 15:58:58 2016 +0800
+++ b/jdk/test/java/nio/channels/DatagramChannel/SocketOptionTests.java Tue May 24 09:18:40 2016 +0100
@@ -25,7 +25,7 @@
* @bug 4640544 8044773
* @summary Unit test for setOption/getOption/options methods
* @run main SocketOptionTests
- * @run main/othervm -Djdk.launcher.limitmods=java.base SocketOptionTests
+ * @run main/othervm -limitmods java.base SocketOptionTests
*/
import java.nio.*;
--- a/jdk/test/java/nio/channels/ServerSocketChannel/SocketOptionTests.java Tue May 24 15:58:58 2016 +0800
+++ b/jdk/test/java/nio/channels/ServerSocketChannel/SocketOptionTests.java Tue May 24 09:18:40 2016 +0100
@@ -26,7 +26,7 @@
* @summary Unit test for ServerSocketChannel setOption/getOption/options
* methods.
* @run main SocketOptionTests
- * @run main/othervm -Djdk.launcher.limitmods=java.base SocketOptionTests
+ * @run main/othervm -limitmods java.base SocketOptionTests
*/
import java.nio.*;
--- a/jdk/test/java/nio/channels/SocketChannel/SocketOptionTests.java Tue May 24 15:58:58 2016 +0800
+++ b/jdk/test/java/nio/channels/SocketChannel/SocketOptionTests.java Tue May 24 09:18:40 2016 +0100
@@ -26,7 +26,7 @@
* @summary Unit test to check SocketChannel setOption/getOption/options
* methods.
* @run main SocketOptionTests
- * @run main/othervm -Djdk.launcher.limitmods=java.base SocketOptionTests
+ * @run main/othervm -limitmods java.base SocketOptionTests
*/
import java.nio.*;