140 |
// java.awt.Font.Font(String,Map) constructor. |
// java.awt.Font.Font(String,Map) constructor. |
141 |
try |
try |
142 |
{ |
{ |
143 |
Constructor fontConstructor = Component.class.getConstructor |
Constructor fontConstructor = Font.class.getDeclaredConstructor |
144 |
(new Class[] { String.class, Map.class }); |
(new Class[] { String.class, Map.class }); |
145 |
AccessController.doPrivileged |
AccessController.doPrivileged |
146 |
(new SetAccessibleAction(fontConstructor)); |
(new SetAccessibleAction(fontConstructor)); |
148 |
} |
} |
149 |
catch (IllegalAccessException e) |
catch (IllegalAccessException e) |
150 |
{ |
{ |
151 |
throw new RuntimeException |
throw new AssertionError(e); |
|
("couldn't call java.awt.Font.Font(String,Map) constructor"); |
|
152 |
} |
} |
153 |
catch (NoSuchMethodException e) |
catch (NoSuchMethodException e) |
154 |
{ |
{ |
155 |
throw new RuntimeException |
throw new AssertionError(e); |
|
("couldn't call java.awt.Font.Font(String,Map) constructor"); |
|
156 |
} |
} |
157 |
catch (InstantiationException e) |
catch (InstantiationException e) |
158 |
{ |
{ |
159 |
throw new RuntimeException |
throw new AssertionError(e); |
|
("couldn't call java.awt.Font.Font(String,Map) constructor"); |
|
160 |
} |
} |
161 |
catch (InvocationTargetException e) |
catch (InvocationTargetException e) |
162 |
{ |
{ |
163 |
throw new RuntimeException |
throw new AssertionError(e); |
|
("couldn't call java.awt.Font.Font(String,Map) constructor"); |
|
164 |
} |
} |
165 |
return f; |
return f; |
166 |
} |
} |