提交 8109f9e6 编写于 作者: T twisti

7109063: JSR 292: fix for 7085860 is incomplete

Reviewed-by: iveresov, alanb, jrose
上级 2d4517cb
......@@ -934,12 +934,4 @@ import static java.lang.invoke.MethodHandles.Lookup.IMPL_LOOKUP;
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);
}
}
......@@ -195,9 +195,6 @@ java/beans/XMLEncoder/6329581/Test6329581.java generic-all
# jdk_lang
# requires junit
java/lang/invoke/InvokeDynamicPrintArgs.java generic-all
# 7079093
java/lang/instrument/ManifestTest.sh windows-all
......
......@@ -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 @@ public class CallSiteTest {
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++) {
......
......@@ -38,8 +38,6 @@
package test.java.lang.invoke;
import org.junit.Test;
import java.util.*;
import java.io.*;
......@@ -99,21 +97,6 @@ public class InvokeDynamicPrintArgs {
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() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册