Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-10289

"java.lang.IllegalArgumentException: Comparison method violates its general contract!" on Java 7

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 6.0, 5.4.5
    • 5.4.4
    • Rendering
    • None
    • Unknown
    • N/A
    • N/A

    Description

      The implementation of Collection#sort has changed in Java 7 and is a bit more strict.

      To summarize it used to more or less only check if Comparable#compareTo result was negative, positive or 0 and is now really taking into account the actual number returned.

      See http://www.oracle.com/technetwork/java/javase/compatibility-417013.html#source

      Attachments

        Activity

          People

            tmortagne Thomas Mortagne
            tmortagne Thomas Mortagne
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: