Changeset 18322 in josm for trunk/src/org


Ignore:
Timestamp:
2021-11-11T13:45:51+01:00 (3 years ago)
Author:
Don-vip
Message:

see #20522 see #21005 - Allow security manager, otherwise it raises a warning in Java 17 and throws an error with Java 18+

See https://bugs.openjdk.java.net/browse/JDK-8271301
See https://bugs.openjdk.java.net/browse/JDK-8270380

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/MainApplication.java

    r18115 r18322  
    10351035        // Disable automatic POST retry after 5 minutes, see #17882 / https://bugs.openjdk.java.net/browse/JDK-6382788
    10361036        Utils.updateSystemProperty("sun.net.http.retryPost", "false");
     1037        if (Utils.getJavaVersion() >= 17) {
     1038            // Allow security manager, otherwise it raises a warning in Java 17 and throws an error with Java 18+
     1039            // See https://bugs.openjdk.java.net/browse/JDK-8271301 / https://bugs.openjdk.java.net/browse/JDK-8270380
     1040            Utils.updateSystemProperty("java.security.manager", "allow");
     1041        }
    10371042    }
    10381043
Note: See TracChangeset for help on using the changeset viewer.