equal
deleted
inserted
replaced
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 } |