--- a/jdk/test/java/lang/invoke/PrivateInvokeTest.java Thu Oct 18 11:09:00 2012 -0700
+++ b/jdk/test/java/lang/invoke/PrivateInvokeTest.java Fri Oct 19 17:04:35 2012 -0700
@@ -145,21 +145,21 @@
MH_DEBUG_STRING = DIRECT_INVOKER_LOOKUP
.findVirtual(MethodHandle.class, "debugString", methodType(String.class));
} catch (ReflectiveOperationException ex) {
- throw new InternalError(ex);
+ throw new Error(ex);
}
}
private Object internalMemberName(MethodHandle mh) {
try {
return MH_INTERNAL_MEMBER_NAME.invokeExact(mh);
} catch (Throwable ex) {
- throw new InternalError(ex);
+ throw new Error(ex);
}
}
private String debugString(MethodHandle mh) {
try {
return (String) MH_DEBUG_STRING.invokeExact(mh);
} catch (Throwable ex) {
- throw new InternalError(ex);
+ throw new Error(ex);
}
}
private static MethodHandle directInvoker(int refKind, MethodType mtype) {