maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Osipov (JIRA)" <j...@codehaus.org>
Subject [jira] (MNG-5568) ComparableVersion's breaks contract for Comparable, in some edgecases the comparisons are not transitive
Date Tue, 02 Dec 2014 09:07:10 GMT

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

Michael Osipov edited comment on MNG-5568 at 12/2/14 3:05 AM:
--------------------------------------------------------------

1. You should not make assumptions about the implementation, only about the contract in the
interface.
2. You can always use [{{ListIterator}}|http://docs.oracle.com/javase/6/docs/api/java/util/ListIterator.html]
which gives you the ability to reverse iterate a list.

Does this sound better?


was (Author: michael-o):
1. You should not make assumptions about the implementation.
2. You can always use {{ListIterator}} which gives you the ability to reverse iterate a list.

Does this sound better?

> 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
>            Assignee: Herve Boutemy
>            Priority: Critical
>             Fix For: 3.2.4
>
>         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)

Mime
View raw message