XWiki Platform
  1. XWiki Platform
  2. XWIKI-10289

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

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major 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

        Activity

        There are no comments yet on this issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: