RFR: 8253702: BigSur version number reported as 10.16, should be 11.nn [v3]

Christoph Langer clanger at openjdk.java.net
Fri Sep 24 14:54:28 UTC 2021


On Thu, 11 Feb 2021 19:23:55 GMT, Roger Riggs <rriggs at openjdk.org> wrote:

>> On Mac Os X, the OSVersionTest detected a difference in the version number reported in the os.version property
>> and the version number provided by `sw_vers -productVersion`.
>> 
>> When the java runtime is built with XCode 11.3, the os.version is reported as 10.16
>> though the current version numbering is 11.nnn.  
>> 
>> The workaround is to derive the os.version number from the ProductBuildVersion.
>> When the toolchain is updated to XCode 12.nnn it can be removed.
>> The workaround is enabled only when the environment variable SYSTEM_VERSION_COMPAT is unset.  
>> When the SYSTEM_VERSION_COMPAT is set in the environment the version number is reported as reported by Mac OS X.
>
> Roger Riggs has updated the pull request incrementally with one additional commit since the last revision:
> 
>   optimize case of 10.16 and SYSTEM_VERSION_COMPAT is set

Yup:
https://github.com/openjdk/jdk17u/pull/85
https://github.com/openjdk/jdk11u/pull/12

For OpenJDK 11u I hope to get it into the October Update. Can't speak for 17u as this is maintained by Oracle. Maybe @sormuras  can help here :)

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

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


More information about the core-libs-dev mailing list