changeset 12758:bffc9b76c590

8180037: move jdk.test.lib.InMemoryJavaCompiler to a separate package Reviewed-by: mseledtsov, vlivanov
author iignatyev
date Thu, 11 May 2017 14:03:50 -0700
parents cab132bfdaec
children 434139d1c85b
files test/gc/metaspace/TestMetaspacePerfCounters.java test/runtime/BadObjectClass/BootstrapRedefine.java test/runtime/RedefineTests/ModifyAnonymous.java test/runtime/Unsafe/DefineClass.java test/runtime/Unsafe/NestedUnsafe.java test/runtime/defineAnonClass/NestedUnsafe.java test/runtime/defineAnonClass/NestedUnsafe2.java test/runtime/getSysPackage/GetSysPkgTest.java test/runtime/modules/ModuleStress/ModuleStress.java test/runtime/modules/PatchModule/PatchModule2Dirs.java test/runtime/modules/PatchModule/PatchModuleCDS.java test/runtime/modules/PatchModule/PatchModuleClassList.java test/runtime/modules/PatchModule/PatchModuleJavaBase.java test/runtime/modules/PatchModule/PatchModuleTest.java test/runtime/modules/PatchModule/PatchModuleTestJar.java test/runtime/modules/PatchModule/PatchModuleTestJarDir.java test/runtime/modules/PatchModule/PatchModuleTraceCL.java test/runtime/modules/Visibility/PatchModuleVisibility.java test/runtime/modules/Visibility/XbootcpNoVisibility.java test/runtime/modules/Visibility/XbootcpVisibility.java
diffstat 20 files changed, 25 insertions(+), 35 deletions(-) [+]
line wrap: on
line diff
--- a/test/gc/metaspace/TestMetaspacePerfCounters.java	Thu May 11 18:11:13 2017 +0000
+++ b/test/gc/metaspace/TestMetaspacePerfCounters.java	Thu May 11 14:03:50 2017 -0700
@@ -26,7 +26,7 @@
 import java.util.ArrayList;
 
 import jdk.test.lib.ByteCodeLoader;
-import jdk.test.lib.InMemoryJavaCompiler;
+import jdk.test.lib.compiler.InMemoryJavaCompiler;
 import jdk.test.lib.Platform;
 
 import sun.management.ManagementFactoryHelper;
--- a/test/runtime/BadObjectClass/BootstrapRedefine.java	Thu May 11 18:11:13 2017 +0000
+++ b/test/runtime/BadObjectClass/BootstrapRedefine.java	Thu May 11 14:03:50 2017 -0700
@@ -31,7 +31,7 @@
  * @run main BootstrapRedefine
  */
 
-import jdk.test.lib.InMemoryJavaCompiler;
+import jdk.test.lib.compiler.InMemoryJavaCompiler;
 import jdk.test.lib.process.ProcessTools;
 import jdk.test.lib.process.OutputAnalyzer;
 
--- a/test/runtime/RedefineTests/ModifyAnonymous.java	Thu May 11 18:11:13 2017 +0000
+++ b/test/runtime/RedefineTests/ModifyAnonymous.java	Thu May 11 14:03:50 2017 -0700
@@ -34,15 +34,14 @@
 
 import java.io.FileNotFoundException;
 import java.io.PrintWriter;
-import java.lang.NoSuchFieldException;
-import java.lang.NoSuchMethodException;
 import java.lang.RuntimeException;
 import java.lang.instrument.ClassDefinition;
 import java.lang.instrument.ClassFileTransformer;
 import java.lang.instrument.IllegalClassFormatException;
 import java.lang.instrument.Instrumentation;
 import java.security.ProtectionDomain;
-import jdk.test.lib.*;
+
+import jdk.test.lib.compiler.InMemoryJavaCompiler;
 
 public class ModifyAnonymous {
 
--- a/test/runtime/Unsafe/DefineClass.java	Thu May 11 18:11:13 2017 +0000
+++ b/test/runtime/Unsafe/DefineClass.java	Thu May 11 14:03:50 2017 -0700
@@ -32,8 +32,8 @@
  */
 
 import java.security.ProtectionDomain;
-import java.io.InputStream;
-import jdk.test.lib.InMemoryJavaCompiler;
+
+import jdk.test.lib.compiler.InMemoryJavaCompiler;
 import jdk.internal.misc.Unsafe;
 import static jdk.test.lib.Asserts.*;
 
--- a/test/runtime/Unsafe/NestedUnsafe.java	Thu May 11 18:11:13 2017 +0000
+++ b/test/runtime/Unsafe/NestedUnsafe.java	Thu May 11 14:03:50 2017 -0700
@@ -31,12 +31,9 @@
  * @run main NestedUnsafe
  */
 
-import java.security.ProtectionDomain;
-import java.io.InputStream;
 import java.lang.*;
-import jdk.test.lib.InMemoryJavaCompiler;
+import jdk.test.lib.compiler.InMemoryJavaCompiler;
 import jdk.internal.misc.Unsafe;
-import static jdk.test.lib.Asserts.*;
 
 // package p;
 
--- a/test/runtime/defineAnonClass/NestedUnsafe.java	Thu May 11 18:11:13 2017 +0000
+++ b/test/runtime/defineAnonClass/NestedUnsafe.java	Thu May 11 14:03:50 2017 -0700
@@ -34,11 +34,10 @@
 
 package p;
 
-import java.security.ProtectionDomain;
-import java.io.InputStream;
 import java.lang.*;
-import jdk.test.lib.*;
+
 import jdk.internal.misc.Unsafe;
+import jdk.test.lib.compiler.InMemoryJavaCompiler;
 
 
 // Test that an anonymous class in package 'p' cannot define its own anonymous class
--- a/test/runtime/defineAnonClass/NestedUnsafe2.java	Thu May 11 18:11:13 2017 +0000
+++ b/test/runtime/defineAnonClass/NestedUnsafe2.java	Thu May 11 14:03:50 2017 -0700
@@ -34,11 +34,10 @@
 
 package p;
 
-import java.security.ProtectionDomain;
-import java.io.InputStream;
 import java.lang.*;
-import jdk.test.lib.*;
+
 import jdk.internal.misc.Unsafe;
+import jdk.test.lib.compiler.InMemoryJavaCompiler;
 
 
 // Test that an anonymous class that gets put in its host's package cannot define
--- a/test/runtime/getSysPackage/GetSysPkgTest.java	Thu May 11 18:11:13 2017 +0000
+++ b/test/runtime/getSysPackage/GetSysPkgTest.java	Thu May 11 14:03:50 2017 -0700
@@ -33,7 +33,7 @@
 import java.io.File;
 import java.lang.reflect.InvocationTargetException;
 import java.lang.reflect.Method;
-import jdk.test.lib.InMemoryJavaCompiler;
+import jdk.test.lib.compiler.InMemoryJavaCompiler;
 import jdk.test.lib.process.ProcessTools;
 import jdk.test.lib.process.OutputAnalyzer;
 
--- a/test/runtime/modules/ModuleStress/ModuleStress.java	Thu May 11 18:11:13 2017 +0000
+++ b/test/runtime/modules/ModuleStress/ModuleStress.java	Thu May 11 14:03:50 2017 -0700
@@ -38,8 +38,7 @@
 
 import jdk.test.lib.process.ProcessTools;
 import jdk.test.lib.process.OutputAnalyzer;
-import jdk.test.lib.InMemoryJavaCompiler;
-import java.io.File;
+import jdk.test.lib.compiler.InMemoryJavaCompiler;
 
 public class ModuleStress {
 
--- a/test/runtime/modules/PatchModule/PatchModule2Dirs.java	Thu May 11 18:11:13 2017 +0000
+++ b/test/runtime/modules/PatchModule/PatchModule2Dirs.java	Thu May 11 14:03:50 2017 -0700
@@ -30,10 +30,9 @@
  * @run main PatchModule2Dirs
  */
 
-import jdk.test.lib.InMemoryJavaCompiler;
+import jdk.test.lib.compiler.InMemoryJavaCompiler;
 import jdk.test.lib.process.OutputAnalyzer;
 import jdk.test.lib.process.ProcessTools;
-import java.io.File;
 
 public class PatchModule2Dirs {
 
--- a/test/runtime/modules/PatchModule/PatchModuleCDS.java	Thu May 11 18:11:13 2017 +0000
+++ b/test/runtime/modules/PatchModule/PatchModuleCDS.java	Thu May 11 14:03:50 2017 -0700
@@ -31,8 +31,7 @@
  * @run main PatchModuleCDS
  */
 
-import java.io.File;
-import jdk.test.lib.InMemoryJavaCompiler;
+import jdk.test.lib.compiler.InMemoryJavaCompiler;
 import jdk.test.lib.process.OutputAnalyzer;
 import jdk.test.lib.process.ProcessTools;
 
--- a/test/runtime/modules/PatchModule/PatchModuleClassList.java	Thu May 11 18:11:13 2017 +0000
+++ b/test/runtime/modules/PatchModule/PatchModuleClassList.java	Thu May 11 14:03:50 2017 -0700
@@ -33,7 +33,7 @@
 
 import java.nio.file.Files;
 import java.nio.file.Paths;
-import jdk.test.lib.InMemoryJavaCompiler;
+import jdk.test.lib.compiler.InMemoryJavaCompiler;
 import jdk.test.lib.process.OutputAnalyzer;
 import jdk.test.lib.process.ProcessTools;
 
--- a/test/runtime/modules/PatchModule/PatchModuleJavaBase.java	Thu May 11 18:11:13 2017 +0000
+++ b/test/runtime/modules/PatchModule/PatchModuleJavaBase.java	Thu May 11 14:03:50 2017 -0700
@@ -31,7 +31,7 @@
  * @run main PatchModuleJavaBase
  */
 
-import jdk.test.lib.InMemoryJavaCompiler;
+import jdk.test.lib.compiler.InMemoryJavaCompiler;
 import jdk.test.lib.process.OutputAnalyzer;
 import jdk.test.lib.process.ProcessTools;
 
--- a/test/runtime/modules/PatchModule/PatchModuleTest.java	Thu May 11 18:11:13 2017 +0000
+++ b/test/runtime/modules/PatchModule/PatchModuleTest.java	Thu May 11 14:03:50 2017 -0700
@@ -31,7 +31,7 @@
  * @run main PatchModuleTest
  */
 
-import jdk.test.lib.InMemoryJavaCompiler;
+import jdk.test.lib.compiler.InMemoryJavaCompiler;
 import jdk.test.lib.process.OutputAnalyzer;
 import jdk.test.lib.process.ProcessTools;
 
--- a/test/runtime/modules/PatchModule/PatchModuleTestJar.java	Thu May 11 18:11:13 2017 +0000
+++ b/test/runtime/modules/PatchModule/PatchModuleTestJar.java	Thu May 11 14:03:50 2017 -0700
@@ -31,7 +31,7 @@
  * @run main PatchModuleTestJar
  */
 
-import jdk.test.lib.InMemoryJavaCompiler;
+import jdk.test.lib.compiler.InMemoryJavaCompiler;
 import jdk.test.lib.process.OutputAnalyzer;
 import jdk.test.lib.process.ProcessTools;
 
--- a/test/runtime/modules/PatchModule/PatchModuleTestJarDir.java	Thu May 11 18:11:13 2017 +0000
+++ b/test/runtime/modules/PatchModule/PatchModuleTestJarDir.java	Thu May 11 14:03:50 2017 -0700
@@ -32,8 +32,8 @@
  */
 
 import java.io.File;
-import java.nio.file.Files;
-import jdk.test.lib.InMemoryJavaCompiler;
+
+import jdk.test.lib.compiler.InMemoryJavaCompiler;
 import jdk.test.lib.process.OutputAnalyzer;
 import jdk.test.lib.process.ProcessTools;
 
--- a/test/runtime/modules/PatchModule/PatchModuleTraceCL.java	Thu May 11 18:11:13 2017 +0000
+++ b/test/runtime/modules/PatchModule/PatchModuleTraceCL.java	Thu May 11 14:03:50 2017 -0700
@@ -32,8 +32,7 @@
  * @run main PatchModuleTraceCL
  */
 
-import java.io.File;
-import jdk.test.lib.InMemoryJavaCompiler;
+import jdk.test.lib.compiler.InMemoryJavaCompiler;
 import jdk.test.lib.process.OutputAnalyzer;
 import jdk.test.lib.process.ProcessTools;
 
--- a/test/runtime/modules/Visibility/PatchModuleVisibility.java	Thu May 11 18:11:13 2017 +0000
+++ b/test/runtime/modules/Visibility/PatchModuleVisibility.java	Thu May 11 14:03:50 2017 -0700
@@ -36,7 +36,7 @@
 import java.nio.file.Files;
 import java.nio.file.Paths;
 
-import jdk.test.lib.InMemoryJavaCompiler;
+import jdk.test.lib.compiler.InMemoryJavaCompiler;
 import jdk.test.lib.process.OutputAnalyzer;
 import jdk.test.lib.process.ProcessTools;
 
--- a/test/runtime/modules/Visibility/XbootcpNoVisibility.java	Thu May 11 18:11:13 2017 +0000
+++ b/test/runtime/modules/Visibility/XbootcpNoVisibility.java	Thu May 11 14:03:50 2017 -0700
@@ -31,7 +31,7 @@
  * @run main/othervm XbootcpNoVisibility
  */
 
-import jdk.test.lib.InMemoryJavaCompiler;
+import jdk.test.lib.compiler.InMemoryJavaCompiler;
 import jdk.test.lib.process.ProcessTools;
 import jdk.test.lib.process.OutputAnalyzer;
 
--- a/test/runtime/modules/Visibility/XbootcpVisibility.java	Thu May 11 18:11:13 2017 +0000
+++ b/test/runtime/modules/Visibility/XbootcpVisibility.java	Thu May 11 14:03:50 2017 -0700
@@ -36,7 +36,7 @@
 import java.nio.file.Files;
 import java.nio.file.Paths;
 
-import jdk.test.lib.InMemoryJavaCompiler;
+import jdk.test.lib.compiler.InMemoryJavaCompiler;
 import jdk.test.lib.process.OutputAnalyzer;
 import jdk.test.lib.process.ProcessTools;