< prev index next >
test/javax/management/ImplementationVersion/ImplVersionTest.java
Print this page
rev 11832 : 8078896: Add @modules as needed to the jdk_svc tests
Reviewed-by: alanb, mchung
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2003, 2006, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 2015, 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
@@ -27,10 +27,11 @@
* @summary Test that there is no difference between the JMX version and the
* JDK version when JMX is bundled into the Java platform and the application
* is run with a security manager and the test codebase has the java permission
* to read the "java.runtime.version" system property.
* @author Luis-Miguel Alventosa
+ * @modules java.management
* @run clean ImplVersionTest ImplVersionCommand
* @run build ImplVersionTest ImplVersionCommand ImplVersionReader
* @run main ImplVersionTest
*/
@@ -74,11 +75,10 @@
if (bootClassPath != null &&
bootClassPath.indexOf("jmxri.jar") != -1)
checkVersion = false;
String command =
javaHome + File.separator + "bin" + File.separator + "java " +
- " -Xbootclasspath/p:" + bootClassPath +
" -classpath " + testClasses +
" -Djava.security.manager -Djava.security.policy==" + testSrc +
File.separator + "policy -Dtest.classes=" + testClasses +
" ImplVersionCommand " +
System.getProperty("java.runtime.version") + " " + checkVersion;
< prev index next >