[jdk15u-dev] RFR: 8274840: Update OS detection code to recognize Windows 11

Olga Mikhaltsova omikhaltcova at openjdk.java.net
Tue Oct 19 20:34:06 UTC 2021


I'd like to backport JDK-8274840 to jdk15u for parity with jdk11u.
The original patch applied cleanly.
Tested with a simple test printing OS version on Windows 11 and 10:

public class Main {
    public static void main(String[] args) {
        System.out.println(System.getProperty("os.name"));
    }
}

-------------

Commit messages:
 - Backport 97ea9dd2f24f9f1fb9b9345a4202a825ee28e014

Changes: https://git.openjdk.java.net/jdk15u-dev/pull/115/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk15u-dev&pr=115&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8274840
  Stats: 15 lines in 2 files changed: 13 ins; 0 del; 2 mod
  Patch: https://git.openjdk.java.net/jdk15u-dev/pull/115.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk15u-dev pull/115/head:pull/115

PR: https://git.openjdk.java.net/jdk15u-dev/pull/115


More information about the jdk-updates-dev mailing list