Ignore:
Timestamp:
2017-05-13T00:56:58+02:00 (3 years ago)
Author:
Don-vip
Message:

see #11924 - do not try old workaround with java 9 (pollutes console with stacktrace)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/Preferences.java

    r12095 r12130  
    14051405    /**
    14061406     * Updates system properties with the current values in the preferences.
    1407      *
    14081407     */
    14091408    public void updateSystemProperties() {
     
    14171416        // Force AWT toolkit to update its internal preferences (fix #6345).
    14181417        // Does not work anymore with Java 9, to remove with Java 9 migration
    1419         if (!GraphicsEnvironment.isHeadless()) {
     1418        if (Utils.getJavaVersion() < 9 && !GraphicsEnvironment.isHeadless()) {
    14201419            try {
    14211420                Field field = Toolkit.class.getDeclaredField("resources");
Note: See TracChangeset for help on using the changeset viewer.