jdk/src/share/classes/java/lang/invoke/MethodHandleStatics.java
changeset 16084 23e1be1fef19
parent 14222 58f55d4dde46
parent 14089 0a41b980d62a
child 16100 379f48d34516
--- a/jdk/src/share/classes/java/lang/invoke/MethodHandleStatics.java	Wed Sep 19 12:58:43 2012 +0800
+++ b/jdk/src/share/classes/java/lang/invoke/MethodHandleStatics.java	Fri Oct 26 10:01:13 2012 -0700
@@ -93,6 +93,12 @@
     }
 
     // handy shared exception makers (they simplify the common case code)
+    /*non-public*/ static InternalError newInternalError(String message, Throwable cause) {
+        return new InternalError(message, cause);
+    }
+    /*non-public*/ static InternalError newInternalError(Throwable cause) {
+        return new InternalError(cause);
+    }
     /*non-public*/ static RuntimeException newIllegalStateException(String message) {
         return new IllegalStateException(message);
     }