--- a/jdk/src/share/classes/java/lang/invoke/MethodHandleStatics.java Tue Aug 30 14:41:12 2011 +0100
+++ b/jdk/src/share/classes/java/lang/invoke/MethodHandleStatics.java Tue Aug 30 11:53:11 2011 -0700
@@ -108,9 +108,7 @@
return new IllegalArgumentException(message(message, obj, obj2));
}
/*non-public*/ static Error uncaughtException(Exception ex) {
- Error err = new InternalError("uncaught exception");
- err.initCause(ex);
- return err;
+ throw new InternalError("uncaught exception", ex);
}
private static String message(String message, Object obj) {
if (obj != null) message = message + ": " + obj;