java.lang.IllegalArgumentException: Comparison method violates its general contract!**

Stack Overflow | V P | 5 months ago
  1. 0

    What are the rules for writing a sort comparator

    Stack Overflow | 5 months ago | V P
    java.lang.IllegalArgumentException: Comparison method violates its general contract!**
  2. 0

    Termination -- java.lang.IllegalArgumentException

    GitHub | 7 months ago | BLepers
    java.lang.IllegalArgumentException: Comparison method violates its general contract!
  3. 0

    EdgeOrdering violates Comparable contract

    GitHub | 3 years ago | rockt
    java.lang.IllegalArgumentException: Comparison method violates its general contract!
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    "Comparison Method violates its general contract" - even with correct implementation of comparator

    Stack Overflow | 3 years ago | karthik
    java.lang.IllegalArgumentException: Comparison method violates its general contract!
  6. 0

    0005381: JDK7 Arrays sort throws exception because Quercus comparator is not transitive - Mantis

    caucho.com | 2 years ago
    java.lang.IllegalArgumentException: Comparison method violates its general contract!

  1. zokni 3 times, last 7 months ago
  2. silex 6 times, last 7 months ago
5 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalArgumentException

    Comparison method violates its general contract!**

    at java.util.TimSort.mergeLo()
  2. Java RT
    Arrays.sort
    1. java.util.TimSort.mergeLo(TimSort.java:747)
    2. java.util.TimSort.mergeAt(TimSort.java:483)
    3. java.util.TimSort.mergeCollapse(TimSort.java:410)
    4. java.util.TimSort.sort(TimSort.java:214)
    5. java.util.TimSort.sort(TimSort.java:173)
    6. java.util.Arrays.sort(Arrays.java:659)
    6 frames
  3. Scala
    AbstractSeq.sortWith
    1. scala.collection.SeqLike$class.sorted(SeqLike.scala:618)
    2. scala.collection.AbstractSeq.sorted(Seq.scala:41)
    3. scala.collection.SeqLike$class.sortWith(SeqLike.scala:575)
    4. scala.collection.AbstractSeq.sortWith(Seq.scala:41)
    4 frames