[ https://jira.codehaus.org/browse/MNG-5568?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=358223#comment-358223 ]
Herve Boutemy edited comment on MNG-5568 at 11/29/14 1:09 AM: -------------------------------------------------------------- yes, thank you Milos for this testcase: I still didn't have time to work on it, but such test case is absolutely necessary to have a chance to fix the bug the edge case is related to the added {{H}} in {{6.1H.5-beta}}, in the middle of the version string instead of appended to the end: that's the unusual part, and I know there is some tweak in the parsing algorithm for transforming {{1H}} into a canonical representation: IIRC, the canonical representation is {{1-H}} and I suppose it's coupled with the fact that {{6.1.0}} is equivalent to {{6.1}} I'll have a look at the test case this WE to narrow the problem (can't tell if it will be sufficient to have a fix...) was (Author: hboutemy): yes, thak you Milos for this testcase: I still didn't have time to work on it, but such test case is absolutely necessary to have a chance to track down the bug the edge case is related to the added {{H}} in {{6.1H.5-beta}}: that's the unusual part, and I know there is some tweak in the parsing algorithm for transforming {{1H}} into a canonical representation: IIRC, the canonical representation is {{1-H}} and I suppose it's coupled with the fact that {{6.1.0}} is equivalent to {{6.1}} I'll have a look at the test case this WE to narrow the problem (can't tell if it will be sufficient to have a fix...) > 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)