< prev index next >
test/javax/management/remote/mandatory/version/ImplVersionTest.java
Print this page
rev 11832 : 8078896: Add @modules as needed to the jdk_svc tests
Reviewed-by: alanb, mchung
*** 1,7 ****
/*
! * Copyright (c) 2004, 2006, 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.
--- 1,7 ----
/*
! * Copyright (c) 2004, 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,36 ****
--- 27,37 ----
* @summary Test that RMIServer.getVersion() reflects 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, Joel Feraud
+ * @modules java.management
* @run clean ImplVersionTest ImplVersionCommand
* @run build ImplVersionTest ImplVersionCommand ImplVersionReader
* @run main ImplVersionTest
*/
*** 64,80 ****
String testSrc = System.getProperty("test.src");
// Get test classes
String testClasses = System.getProperty("test.classes");
- // Get boot class path
- String bootClassPath = System.getProperty("sun.boot.class.path");
-
// Build command string
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");
System.out.println("ImplVersionCommand Exec Command = " + command);
--- 65,77 ----
< prev index next >