Changeset 8816 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2015-10-03T01:03:20+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/Preferences.java
r8557 r8816 1483 1483 Utils.updateSystemProperty("user.language", get("language")); 1484 1484 // Workaround to fix a Java bug. 1485 // Force AWT toolkit to update its internal preferences (fix # 3645).1485 // Force AWT toolkit to update its internal preferences (fix #6345). 1486 1486 // This ugly hack comes from Sun bug database: https://bugs.openjdk.java.net/browse/JDK-6292739 1487 1487 try { … … 1489 1489 field.setAccessible(true); 1490 1490 field.set(null, ResourceBundle.getBundle("sun.awt.resources.awt")); 1491 } catch (Exception e) { 1492 // Ignore all exceptions 1491 } catch (Exception | InternalError e) { 1492 // Ignore all exceptions, including internal error raised by Java 9 Jigsaw EA: 1493 // java.lang.InternalError: legacy getBundle can't be used to find sun.awt.resources.awt in module java.desktop 1494 // InternalError catch to remove when https://bugs.openjdk.java.net/browse/JI-9025152 is resolved 1493 1495 if (Main.isTraceEnabled()) { 1494 1496 Main.trace(e.getMessage());
Note:
See TracChangeset
for help on using the changeset viewer.