Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-9614

ArtifactId.compareTo is using simple string compare

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • Feature Model 1.2.4
    • Feature Model 1.2.6
    • Feature Model
    • None

    Description

      The current implementation of ArtifactId.compareTo is doing a string compare - which works for most of the parts of the id, except for version. With a string compare, for example "1.7" is regarded higher than "1.11" (as 7 is higher than 1)
      The compareTo method must take the version into account and do a proper compare based on the version

      Attachments

        Activity

          People

            cziegeler Carsten Ziegeler
            cziegeler Carsten Ziegeler
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: