The Mac OS specific code to determine the os.version property in java_props_macosx.c is updated to replace the code extracting the version from the SystemVersion.plist by reading the version using t\ he hidden link:
------------- Commit messages: - 8269850: Most JDK releases report macOS version 12 as 10.16 instead of 12.0 Changes: https://git.openjdk.java.net/jdk/pull/5633/files Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=5633&range=00 Issue: https://bugs.openjdk.java.net/browse/JDK-8269850 Stats: 11 lines in 1 file changed: 1 ins; 6 del; 4 mod Patch: https://git.openjdk.java.net/jdk/pull/5633.diff Fetch: git fetch https://git.openjdk.java.net/jdk pull/5633/head:pull/5633 PR: https://git.openjdk.java.net/jdk/pull/5633