7109063: JSR 292: fix for 7085860 is incomplete
Reviewed-by: iveresov, alanb, jrose
--- a/jdk/src/share/classes/java/lang/invoke/MethodHandleImpl.java Wed Nov 02 02:03:30 2011 -0700
+++ b/jdk/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/jdk/test/ProblemList.txt Wed Nov 02 02:03:30 2011 -0700
+++ b/jdk/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/jdk/test/java/lang/invoke/CallSiteTest.java Wed Nov 02 02:03:30 2011 -0700
+++ b/jdk/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/jdk/test/java/lang/invoke/InvokeDynamicPrintArgs.java Wed Nov 02 02:03:30 2011 -0700
+++ b/jdk/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() {