jdk/src/share/classes/java/lang/invoke/DirectMethodHandle.java
changeset 14089 0a41b980d62a
parent 13610 28122b96858e
child 14342 8435a30053c1
--- a/jdk/src/share/classes/java/lang/invoke/DirectMethodHandle.java	Thu Oct 18 11:09:00 2012 -0700
+++ b/jdk/src/share/classes/java/lang/invoke/DirectMethodHandle.java	Fri Oct 19 17:04:35 2012 -0700
@@ -218,7 +218,7 @@
         try {
             linker = IMPL_NAMES.resolveOrFail(REF_invokeStatic, linker, null, NoSuchMethodException.class);
         } catch (ReflectiveOperationException ex) {
-            throw new InternalError(ex);
+            throw newInternalError(ex);
         }
         final int DMH_THIS    = 0;
         final int ARG_BASE    = 1;
@@ -554,7 +554,7 @@
         try {
             linker = IMPL_NAMES.resolveOrFail(REF_invokeVirtual, linker, null, NoSuchMethodException.class);
         } catch (ReflectiveOperationException ex) {
-            throw new InternalError(ex);
+            throw newInternalError(ex);
         }
 
         // What is the external type of the lambda form?
@@ -653,7 +653,7 @@
                 nf.resolve();
             }
         } catch (ReflectiveOperationException ex) {
-            throw new InternalError(ex);
+            throw newInternalError(ex);
         }
     }
 }