jdk/src/share/classes/java/lang/invoke/MethodHandleStatics.java
changeset 10419 12c063b39232
parent 9780 6fc3b49cfee4
child 13423 17843fff200d
--- 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;