RFR: 8269850: Most JDK releases report macOS version 12 as 10.16 instead of 12.0
Brian Burkhalter
bpb at openjdk.java.net
Tue Sep 21 20:59:59 UTC 2021
On Tue, 21 Sep 2021 19:33:05 GMT, Roger Riggs <rriggs at openjdk.org> wrote:
> 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 the hidden link:
> `/System/Library/CoreServices/.SystemVersionPlatform.plist`
>
> Its contents are not dependent on the SYSTEM_VERSION_COMPAT environment variable.
> With this change, 11.5 reports the 11.5.1 minor version and os.version 11.6 is correctly reported.
> The change can be backported to other versions as needed.
Marked as reviewed by bpb (Reviewer).
-------------
PR: https://git.openjdk.java.net/jdk/pull/5619
More information about the core-libs-dev
mailing list