Hi, Phil.
But some time ago in the jdk all .startsWith("Mac OS X") or
.startsWith("Mac")
were replaced by ".contains("OS X")"
http://hg.openjdk.java.net/jdk8/awt/jdk/rev/77b35c5c4b95
In print area also, see changes in UnixPrintServiceLookup.isBSD().
As far as I know Apple officially drops Mac from "Mac OS X" name.
On 19.06.2012 20:49, Phil Race wrote:
startsWith("Mac") is what we use in FX and I don't see a problem with it
and its surely more reliable to type and efficient than contains("OS X");
If its meant to be targeted to a specific version that could break if
there's an OS XI ..
And startsWith("Win") is a common pattern. So I don't agree with the
advice
anyway.
-phil.
On 6/19/2012 9:36 AM, Sergey Bylokhov wrote:
Hi,Phil.
According to these CR macosx check should be: .contains("OS X").
http://monaco.sfbay.sun.com/detail.jsf?cr=7147461
http://monaco.sfbay.sun.com/detail.jsf?cr=7130404
On 19.06.2012 20:13, Phil Race wrote:
7124536: [macosx] PrintServiceLookup.lookupDefaultPrintService()
return null
http://cr.openjdk.java.net/~prr/7124536.7u6/
-phil.
--
Best regards, Sergey.