[ 
http://jira.codehaus.org/browse/MARTIFACT-18?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=136021#action_136021
 ] 

Benjamin Bentmann commented on MARTIFACT-18:
--------------------------------------------

Maybe this needs some more rethought: As far as I read, the [Ordering 
Algo|http://docs.codehaus.org/display/MAVEN/Versioning#Versioning-Orderingalgorithm]
 makes a significant difference when comparing integers or strings: "Integer is 
newer [than String]". I haven't actually tried, but from this I would assume 
that "x.(MAX_INT)" > "x.(MAX_INT + 1)" which would be odd. An alternative 
approach could be to use {{java.math.BigInteger}} for the numerical components.

> NumberFormatException parsing certain versions
> ----------------------------------------------
>
>                 Key: MARTIFACT-18
>                 URL: http://jira.codehaus.org/browse/MARTIFACT-18
>             Project: Maven Artifact
>          Issue Type: Bug
>    Affects Versions: 3.0
>            Reporter: Igor Fedorenko
>            Priority: Critical
>         Attachments: martifact-parse-version.diff
>
>
> ComparableVersion.parseVersion chokes on versions that have substrings that 
> look like numbers but are too big to fit into int value. For example, 
> 1.2.3.200705301630.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to