Withdrawn: 8269850: Most JDK releases report macOS version 12 as 10.16 instead of 12.0

Roger Riggs rriggs at openjdk.java.net
Wed Sep 22 14:47:07 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.

This pull request has been closed without being integrated.

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

PR: https://git.openjdk.java.net/jdk/pull/5619


More information about the core-libs-dev mailing list