[ 
https://jira.codehaus.org/browse/MNG-5568?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=358301#comment-358301
 ] 

Herve Boutemy commented on MNG-5568:
------------------------------------

made maven-artifact.jar executable to test version parsing and comparison
we can now analyze the bug more easily:
{code}$ java -jar maven-artifact-3.2.4-SNAPSHOT.jar 6.1.0 6.1.0rc3 6.1H.5-beta 
6.1.0
Display parameters as parsed by Maven, and comparison result:
1. 6.1.0 == 6.1
   6.1.0 > 6.1.0rc3
2. 6.1.0rc3 == 6.1.0.rc.3
   6.1.0rc3 > 6.1H.5-beta
3. 6.1H.5-beta == 6.1.h.5.beta
   6.1H.5-beta > 6.1.0
4. 6.1.0 == 6.1{code}

> ComparableVersion's breaks contract for Comparable, in some edgecases the 
> comparisons are not transitive
> --------------------------------------------------------------------------------------------------------
>
>                 Key: MNG-5568
>                 URL: https://jira.codehaus.org/browse/MNG-5568
>             Project: Maven
>          Issue Type: Bug
>          Components: Artifacts and Repositories
>    Affects Versions: 3.0.5
>            Reporter: Milos Kleint
>            Priority: Critical
>         Attachments: ComparableVersion.patch
>
>
> if ComparableVersion A > B and B > C, then it's required that A > C. In the 
> attached test patch, I'm demonstrating a case where it's failing. Please note 
> that the situation is not that rare, please see issues 
> https://netbeans.org/bugzilla/show_bug.cgi?id=226100 and 
> https://netbeans.org/bugzilla/show_bug.cgi?id=240845 at netbeans.org and 
> https://jira.codehaus.org/browse/MPIR-247



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Reply via email to