changeset 4732:5c34ed65176e

7109063: JSR 292: fix for 7085860 is incomplete Reviewed-by: iveresov, alanb, jrose
author twisti
date Wed, 09 Nov 2011 00:46:13 -0800
parents 2a147f854257
children bdb2d63c176c
files src/share/classes/java/lang/invoke/MethodHandleImpl.java test/ProblemList.txt test/java/lang/invoke/CallSiteTest.java test/java/lang/invoke/InvokeDynamicPrintArgs.java
diffstat 4 files changed, 5 insertions(+), 30 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/lang/invoke/MethodHandleImpl.java	Wed Nov 02 02:03:30 2011 -0700
+++ b/src/share/classes/java/lang/invoke/MethodHandleImpl.java	Wed Nov 09 00:46:13 2011 -0800
@@ -934,12 +934,4 @@
         return THROW_EXCEPTION;
     }
     static <T extends Throwable> Empty throwException(T t) throws T { throw t; }
-
-    // Linkage support:
-    static void registerBootstrap(Class<?> callerClass, MethodHandle bootstrapMethod) {
-        MethodHandleNatives.registerBootstrap(callerClass, bootstrapMethod);
-    }
-    static MethodHandle getBootstrap(Class<?> callerClass) {
-        return MethodHandleNatives.getBootstrap(callerClass);
-    }
 }
--- a/test/ProblemList.txt	Wed Nov 02 02:03:30 2011 -0700
+++ b/test/ProblemList.txt	Wed Nov 09 00:46:13 2011 -0800
@@ -195,9 +195,6 @@
 
 # jdk_lang
 
-# requires junit
-java/lang/invoke/InvokeDynamicPrintArgs.java                    generic-all
-
 # 7079093
 java/lang/instrument/ManifestTest.sh                            windows-all
 
--- a/test/java/lang/invoke/CallSiteTest.java	Wed Nov 02 02:03:30 2011 -0700
+++ b/test/java/lang/invoke/CallSiteTest.java	Wed Nov 09 00:46:13 2011 -0800
@@ -36,8 +36,6 @@
 
 package test.java.lang.invoke;
 
-import static org.junit.Assert.*;
-
 import java.io.*;
 
 import java.lang.invoke.*;
@@ -72,6 +70,11 @@
     private final static int RESULT1 = 762786192;
     private final static int RESULT2 = -21474836;
 
+    private static void assertEquals(int expected, int actual) {
+        if (expected != actual)
+            throw new AssertionError("expected: " + expected + ", actual: " + actual);
+    }
+
     private static void testMutableCallSite() throws Throwable {
         // warm-up
         for (int i = 0; i < 20000; i++) {
--- a/test/java/lang/invoke/InvokeDynamicPrintArgs.java	Wed Nov 02 02:03:30 2011 -0700
+++ b/test/java/lang/invoke/InvokeDynamicPrintArgs.java	Wed Nov 09 00:46:13 2011 -0800
@@ -38,8 +38,6 @@
 
 package test.java.lang.invoke;
 
-import org.junit.Test;
-
 import java.util.*;
 import java.io.*;
 
@@ -99,21 +97,6 @@
         System.setSecurityManager(new SM());
     }
 
-    @Test
-    public void testInvokeDynamicPrintArgs() throws IOException {
-        System.err.println(System.getProperties());
-        String testClassPath = System.getProperty("build.test.classes.dir");
-        if (testClassPath == null)  throw new RuntimeException();
-        String[] args = new String[]{
-            "--verify-specifier-count=3",
-            "--verbose",
-            "--expand-properties", "--classpath", testClassPath,
-            "--java", "test.java.lang.invoke.InvokeDynamicPrintArgs", "--check-output"
-        };
-        System.err.println("Indify: "+Arrays.toString(args));
-        indify.Indify.main(args);
-    }
-
     private static PrintStream oldOut;
     private static ByteArrayOutputStream buf;
     private static void openBuf() {