Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-5568

ComparableVersion's breaks contract for Comparable, in some edgecases the comparisons are not transitive

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 3.0.5
    • 3.2.5
    • None

    Description

      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

      Attachments

        1. ComparableVersion.patch
          2 kB
          Milos Kleint

        Issue Links

          Activity

            People

              hboutemy Herve Boutemy
              mkleint Milos Kleint
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: