jdk/src/share/classes/sun/security/util/SecurityConstants.java
changeset 10419 12c063b39232
parent 5506 202f599c92aa
child 14342 8435a30053c1
equal deleted inserted replaced
10418:1d57022fdb6e 10419:12c063b39232
   125                     }});
   125                     }});
   126             if (c != null) {
   126             if (c != null) {
   127                 // AWT present
   127                 // AWT present
   128                 try {
   128                 try {
   129                     return (PermissionFactory<?>)c.newInstance();
   129                     return (PermissionFactory<?>)c.newInstance();
   130                 } catch (InstantiationException x) {
   130                 } catch (ReflectiveOperationException x) {
   131                     throw new InternalError(x.getMessage());
   131                     throw new InternalError(x.getMessage(), x);
   132                 } catch (IllegalAccessException x) {
       
   133                     throw new InternalError(x.getMessage());
       
   134                 }
   132                 }
   135             } else {
   133             } else {
   136                 // AWT not present
   134                 // AWT not present
   137                 return new FakeAWTPermissionFactory();
   135                 return new FakeAWTPermissionFactory();
   138             }
   136             }