--- 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);
}