changeset 14486:1d9005d2200d

Remove dependency on sun.boot.class.path from more tests
author alanb
date Mon, 16 Nov 2015 10:52:47 +0000
parents 5c676ed31145
children 5babde7bd078
files test/java/lang/instrument/BootClassPath/Agent.java test/java/lang/invoke/lambda/LambdaAccessControlDoPrivilegedTest.java test/java/rmi/reliability/benchmark/bench/HtmlReporter.java test/java/rmi/reliability/benchmark/bench/TextReporter.java
diffstat 4 files changed, 3 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/test/java/lang/instrument/BootClassPath/Agent.java	Sat Nov 14 14:54:57 2015 +0000
+++ b/test/java/lang/instrument/BootClassPath/Agent.java	Mon Nov 16 10:52:47 2015 +0000
@@ -33,10 +33,7 @@
 
 public class Agent {
     public static void premain(String options, Instrumentation ins) throws Exception {
-        String bootclasspath = System.getProperty("sun.boot.class.path");
-        System.out.println("bootclasspath: " + bootclasspath);
-
-        Class c = Class.forName("AgentSupport");
+        Class<?> c = Class.forName("AgentSupport");
         ClassLoader cl = c.getClassLoader();
         if (cl != null) {
             System.err.println("AgentSupport loaded by: " + cl);
--- a/test/java/lang/invoke/lambda/LambdaAccessControlDoPrivilegedTest.java	Sat Nov 14 14:54:57 2015 +0000
+++ b/test/java/lang/invoke/lambda/LambdaAccessControlDoPrivilegedTest.java	Mon Nov 16 10:52:47 2015 +0000
@@ -53,8 +53,6 @@
         scratch.clear();
         scratch.add("public class Bar {");
         scratch.add("public static void main(String... args) {");
-        scratch.add("System.out.println(\"sun.boot.class.path\" + \"=\" +");
-        scratch.add("    System.getProperty(\"sun.boot.class.path\", \"\"));");
         scratch.add("System.setSecurityManager(new SecurityManager());");
         scratch.add("DoPriv.main();");
         scratch.add("}");
--- a/test/java/rmi/reliability/benchmark/bench/HtmlReporter.java	Sat Nov 14 14:54:57 2015 +0000
+++ b/test/java/rmi/reliability/benchmark/bench/HtmlReporter.java	Mon Nov 16 10:52:47 2015 +0000
@@ -41,7 +41,7 @@
     static final int PRECISION = 3;
     static final String[] PROPNAMES = { "os.name", "os.arch", "os.version",
         "java.home", "java.vm.version", "java.vm.vendor", "java.vm.name",
-        "java.compiler", "java.class.path", "sun.boot.class.path" };
+        "java.compiler", "java.class.path" };
 
     OutputStream out;
     String title;
--- a/test/java/rmi/reliability/benchmark/bench/TextReporter.java	Sat Nov 14 14:54:57 2015 +0000
+++ b/test/java/rmi/reliability/benchmark/bench/TextReporter.java	Mon Nov 16 10:52:47 2015 +0000
@@ -47,7 +47,7 @@
     static final int PROPNAME_WIDTH = 25;
     static final String[] PROPNAMES = { "os.name", "os.arch", "os.version",
         "java.home", "java.vm.version", "java.vm.vendor", "java.vm.name",
-        "java.compiler", "java.class.path", "sun.boot.class.path" };
+        "java.compiler", "java.class.path" };
 
     OutputStream out;
     String title;