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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.4.4
    • Fix Version/s: 6.0, 5.4.5
    • Component/s: Rendering
    • Labels:
      None
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      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

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

              Dates

              • Created:
                Updated:
                Resolved: