jdk/src/share/classes/sun/reflect/MethodAccessorGenerator.java
changeset 10355 a976ff46116b
parent 10342 ca0984bc9d32
child 14342 8435a30053c1
--- a/jdk/src/share/classes/sun/reflect/MethodAccessorGenerator.java	Mon Aug 22 16:05:38 2011 +0100
+++ b/jdk/src/share/classes/sun/reflect/MethodAccessorGenerator.java	Mon Aug 22 12:16:12 2011 -0700
@@ -401,10 +401,8 @@
                                  0,
                                  bytes.length,
                                  declaringClass.getClassLoader()).newInstance();
-                        } catch (InstantiationException |
-                                 IllegalAccessException e) {
-                            throw (InternalError)
-                                new InternalError().initCause(e);
+                        } catch (InstantiationException | IllegalAccessException e) {
+                            throw new InternalError(e);
                         }
                     }
                 });