commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benedikt Ritter (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (LANG-1102) Make logic for comparing OS versions in SystemUtils smarter
Date Sat, 28 Mar 2015 12:09:52 GMT

     [ https://issues.apache.org/jira/browse/LANG-1102?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Benedikt Ritter resolved LANG-1102.
-----------------------------------
       Resolution: Fixed
    Fix Version/s: 3.4

{code}
$ svn ci -m "LANG-1102: Make logic for comparing OS versions in SystemUtils smarter"
Sending        src/changes/changes.xml
Sending        src/main/java/org/apache/commons/lang3/SystemUtils.java
Sending        src/test/java/org/apache/commons/lang3/SystemUtilsTest.java
Transmitting file data ...
Committed revision 1669750.
{code}

> Make logic for comparing OS versions in SystemUtils smarter
> -----------------------------------------------------------
>
>                 Key: LANG-1102
>                 URL: https://issues.apache.org/jira/browse/LANG-1102
>             Project: Commons Lang
>          Issue Type: Improvement
>          Components: lang.*
>            Reporter: Benedikt Ritter
>            Assignee: Benedikt Ritter
>             Fix For: 3.4
>
>
> Currently an OS verison prefix of 10.1 will also match an OS version 10.10, because SystemUtils
uses {{String.startsWith(String)}} for comparison. The logic should be smarter so that it
can differentiate version 10.10 and 10.1



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

Mime
View raw message