8145026: compiler/jsr292/NonInlinedCall/RedefineTest.java fails with: java.lang.NullPointerException in ClassFileInstaller.main
authorvlivanov
Thu, 10 Dec 2015 14:51:54 +0300
changeset 35107 ebed5fa5b08a
parent 35106 79f25c397652
child 35108 ccb4e1f2a6cf
8145026: compiler/jsr292/NonInlinedCall/RedefineTest.java fails with: java.lang.NullPointerException in ClassFileInstaller.main Reviewed-by: roland
hotspot/test/compiler/jsr292/NonInlinedCall/Agent.java
hotspot/test/compiler/jsr292/NonInlinedCall/GCTest.java
hotspot/test/compiler/jsr292/NonInlinedCall/InvokeTest.java
hotspot/test/compiler/jsr292/NonInlinedCall/RedefineTest.java
--- a/hotspot/test/compiler/jsr292/NonInlinedCall/Agent.java	Thu Dec 10 14:51:53 2015 +0300
+++ b/hotspot/test/compiler/jsr292/NonInlinedCall/Agent.java	Thu Dec 10 14:51:54 2015 +0300
@@ -22,7 +22,6 @@
  */
 import java.io.File;
 import java.io.PrintStream;
-import java.lang.instrument.Instrumentation;
 import java.util.Arrays;
 
 public class Agent {
--- a/hotspot/test/compiler/jsr292/NonInlinedCall/GCTest.java	Thu Dec 10 14:51:53 2015 +0300
+++ b/hotspot/test/compiler/jsr292/NonInlinedCall/GCTest.java	Thu Dec 10 14:51:54 2015 +0300
@@ -24,8 +24,8 @@
 /*
  * @test
  * @bug 8072008
- * @library /testlibrary /../../test/lib
- * @build GCTest NonInlinedReinvoker
+ * @library /testlibrary /test/lib
+ * @compile GCTest.java NonInlinedReinvoker.java
  * @run main ClassFileInstaller sun.hotspot.WhiteBox
  *                              sun.hotspot.WhiteBox$WhiteBoxPermission
  *                              java.lang.invoke.GCTest
@@ -40,10 +40,8 @@
 package java.lang.invoke;
 
 import sun.hotspot.WhiteBox;
-
 import jdk.internal.vm.annotation.DontInline;
 import jdk.internal.vm.annotation.Stable;
-
 import java.lang.ref.*;
 import static jdk.test.lib.Asserts.*;
 
--- a/hotspot/test/compiler/jsr292/NonInlinedCall/InvokeTest.java	Thu Dec 10 14:51:53 2015 +0300
+++ b/hotspot/test/compiler/jsr292/NonInlinedCall/InvokeTest.java	Thu Dec 10 14:51:54 2015 +0300
@@ -24,8 +24,8 @@
 /*
  * @test
  * @bug 8072008
- * @library /testlibrary /../../test/lib
- * @build InvokeTest NonInlinedReinvoker
+ * @library /testlibrary /test/lib
+ * @compile InvokeTest.java NonInlinedReinvoker.java
  * @run main ClassFileInstaller sun.hotspot.WhiteBox
  *                              sun.hotspot.WhiteBox$WhiteBoxPermission
  *                              java.lang.invoke.InvokeTest
@@ -43,9 +43,7 @@
 package java.lang.invoke;
 
 import sun.hotspot.WhiteBox;
-
 import jdk.internal.vm.annotation.DontInline;
-
 import static jdk.test.lib.Asserts.*;
 
 public class InvokeTest {
--- a/hotspot/test/compiler/jsr292/NonInlinedCall/RedefineTest.java	Thu Dec 10 14:51:53 2015 +0300
+++ b/hotspot/test/compiler/jsr292/NonInlinedCall/RedefineTest.java	Thu Dec 10 14:51:54 2015 +0300
@@ -24,8 +24,8 @@
 /*
  * @test
  * @bug 8072008
- * @library /testlibrary /../../test/lib
- * @build RedefineTest Agent
+ * @library /testlibrary /test/lib
+ * @compile -XDignore.symbol.file RedefineTest.java Agent.java
  * @run main ClassFileInstaller sun.hotspot.WhiteBox
  *                              sun.hotspot.WhiteBox$WhiteBoxPermission
  *                              java.lang.invoke.RedefineTest
@@ -42,10 +42,8 @@
 
 import sun.hotspot.WhiteBox;
 import sun.misc.Unsafe;
-
 import jdk.internal.org.objectweb.asm.*;
 import jdk.internal.vm.annotation.DontInline;
-
 import java.lang.instrument.ClassDefinition;
 import java.lang.instrument.Instrumentation;