From weijun.wang at oracle.com Fri Jul 1 03:05:43 2016 From: weijun.wang at oracle.com (Wang Weijun) Date: Fri, 1 Jul 2016 11:05:43 +0800 Subject: os.name will be "macOS"? (was Re: RFR 9 : 8160370 : System.getProperty("os.version") returns "Unknown" on Mac) In-Reply-To: References: <735e1337-7e48-912a-7698-688bc5206cd3@oracle.com> <4bfcc3a7-59a2-fb87-f06f-e3da5c433b48@oracle.com> Message-ID: <80416C7F-120C-4200-AB61-49DEDA63CCA5@oracle.com> I have an off-topic question: Will os.name be macOS for 10.12? I have several places checking "if (!osname.contains("OS X"))", is there a helper method I can check for this in the future no matter if it's running on pre- or post-10.12? Thanks Max > On Jul 1, 2016, at 2:23 AM, Brent Christian wrote: > > On 6/30/16 9:53 AM, Brent Christian wrote: >> >> When the minimum Mac build platform is SDK 10.10, we'll be able to call >> operatingSystemVersion directly without using msgSend. We can also >> consider removing this then. > > FYI: > https://bugs.openjdk.java.net/browse/JDK-8160676 > > -Brent From brent.christian at oracle.com Thu Jul 21 17:08:42 2016 From: brent.christian at oracle.com (Brent Christian) Date: Thu, 21 Jul 2016 10:08:42 -0700 Subject: RFR 9 8161039 : System.getProperty("os.version") returns incorrect version number on Mac Message-ID: Hi, The fix for 7131356 introduced a minor behavior change in the value of the "os.version" system property on MacOS. On systems running an OS with a patch version of 0, we've started including this in the value of os.version (e.g. "10.11.0"), whereas before the trailing ".0" was omitted. Please review this fix, which restores the previous behavior. Bug: https://bugs.openjdk.java.net/browse/JDK-8161039 Webrev: http://cr.openjdk.java.net/~bchristi/8161039/webrev.00/ Thanks! -Brent