RFR: 8269850: Most JDK releases report macOS version 12 as 10.16 instead of 12.0
Naoto Sato
naoto at openjdk.java.net
Wed Sep 22 17:11:58 UTC 2021
On Wed, 22 Sep 2021 15:00:59 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 t\
> he hidden link:
src/java.base/macosx/native/libjava/java_props_macosx.c line 270:
> 268: @"/System/Library/CoreServices/.SystemVersionPlatform.plist"];
> 269: if (version != NULL) {
> 270: NSString *nsVerStr = [version objectForKey : @"ProductVersion"];
Should we check `nsVerStr != NULL` here?
-------------
PR: https://git.openjdk.java.net/jdk/pull/5633
More information about the core-libs-dev
mailing list