jdk/src/share/classes/sun/security/util/SecurityConstants.java
changeset 10419 12c063b39232
parent 5506 202f599c92aa
child 14342 8435a30053c1
--- a/jdk/src/share/classes/sun/security/util/SecurityConstants.java	Tue Aug 30 14:41:12 2011 +0100
+++ b/jdk/src/share/classes/sun/security/util/SecurityConstants.java	Tue Aug 30 11:53:11 2011 -0700
@@ -127,10 +127,8 @@
                 // AWT present
                 try {
                     return (PermissionFactory<?>)c.newInstance();
-                } catch (InstantiationException x) {
-                    throw new InternalError(x.getMessage());
-                } catch (IllegalAccessException x) {
-                    throw new InternalError(x.getMessage());
+                } catch (ReflectiveOperationException x) {
+                    throw new InternalError(x.getMessage(), x);
                 }
             } else {
                 // AWT not present