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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via seqanswers.com by Unknown author, 1 year ago
Comparison method violates its general contract!
via seqanswers.com by Unknown author, 1 year ago
Comparison method violates its general contract!
via seqanswers.com by Unknown author, 10 months ago
Comparison method violates its general contract!
via Stack Overflow by yannicuLar
, 10 months ago
Comparison method violates its general contract!
via Stack Overflow by Unknown author, 2 years ago
Comparison method violates its general contract!
java.lang.IllegalArgumentException: Comparison method violates its general contract!
at java.util.TimSort.mergeHi(TimSort.java:868)
at java.util.TimSort.mergeAt(TimSort.java:485)
at java.util.TimSort.mergeCollapse(TimSort.java:410)
at java.util.TimSort.sort(TimSort.java:214)
at java.util.TimSort.sort(TimSort.java:173)
at java.util.Arrays.sort(Arrays.java:659)
at brig.Main.reverseBlast(Main.java:206)
at brig.Main.BlastMaster(Main.java:1494)
at brig.Main.ParseBlast(Main.java:1352)
at brig.Three2.compute(Three2.java:337)
at brig.Three2.access$300(Three2.java:33)
at brig.Three2$4.run(Three2.java:234)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
3 times, 1 year ago
6 times, 1 year ago
15 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.