Richard Elling wrote:
> kedar wrote:
>> We have state-of-the-art support for SMF integration
>> for GlassFish. (cf. 
>> http://blogs.sun.com/bloggerkedar/entry/app_server_and_solaris_10)
>>
>> One of the issues I am seeing is currently, I make sure
>> that SMF is available by seeing that the OS is Solaris 10.
>> (In Java, we do System.getProperty("os.name")).
> 
> System.getProperty("os.version") returns "5.11"  The trick is that you
> can't do a direct mathematical conditional on it because 5.11 < 5.2.  If
> you  want to compare mathematically (recommended), then separate the minor
> version number.

but that doesn't work either if we use micro releases or have a 6.0.

It is actually wrong to assume that these are even numbers, in theory we 
could have 5.B instead of 5.11.

Test for the feature not for the release it first appear in, this is 
also very important because features do get backported, they can also 
get removed in the future too.

-- 
Darren J Moffat

Reply via email to