You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Timo Kockert (JIRA)" <ji...@apache.org> on 2015/03/27 23:32:53 UTC

[jira] [Commented] (LANG-794) SystemUtils.IS_OS_WINDOWS_2008, VISTA are incorrect

    [ https://issues.apache.org/jira/browse/LANG-794?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14384811#comment-14384811 ] 

Timo Kockert commented on LANG-794:
-----------------------------------

I agree with [~bayard], on Windows commons-lang should use the value of os.name to determine the version. Take a look at http://hg.openjdk.java.net/jdk8u/jdk8u40/jdk/file/tip/src/windows/native/java/lang/java_props_md.c for possible values.

> SystemUtils.IS_OS_WINDOWS_2008, VISTA are incorrect
> ---------------------------------------------------
>
>                 Key: LANG-794
>                 URL: https://issues.apache.org/jira/browse/LANG-794
>             Project: Commons Lang
>          Issue Type: Bug
>          Components: lang.*
>    Affects Versions: 3.1
>         Environment: Windows Server 2008 R2, Rackspace Cloud Instance
>            Reporter: Tyler Hobbs
>             Fix For: Patch Needed
>
>
> On Windows Server 2008 R2 (a Rackspace Cloud Instance), the values of SystemUtils.IS_OS_WINDOWS_2008 and SystemUtils.IS_OS_WINDOWS_VISTA are incorrect: the former is false and the latter is true.
> I'm not sure how to fix the VISTA flag (as I don't have an instance to test against), but the cause of WINDOWS_2008 being set to false is that the match explicitly requires the version to be 6.1, where 6.0 can apparently also be the version number for 2008 R2.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)