--- 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