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 GitHub by gavinking
, 1 year ago
Comparison method violates its general contract!
via GitHub by rzanoli
, 2 years ago
Comparison method violates its general contract!
via Stack Overflow by Priyanshu Singh
, 1 year ago
Comparison method violates its general contract! Exception in thread "main" java.lang.IllegalArgumentException: Comparison method violates its general contract!
via GitHub by pupaxxo
, 9 months ago
Comparison method violates its general contract!
via GitHub by Nycander
, 10 months ago
Comparison method violates its general contract!
java.lang.IllegalArgumentException: Comparison method violates its general contract!
at java.util.TimSort.mergeHi(TimSort.java:899)
at java.util.TimSort.mergeAt(TimSort.java:516)
at java.util.TimSort.mergeCollapse(TimSort.java:439)
at java.util.TimSort.sort(TimSort.java:245)
at java.util.Arrays.sort(Arrays.java:1512)
at java.util.ArrayList.sort(ArrayList.java:1454)
at java.util.Collections.sort(Collections.java:175)
at com.redhat.ceylon.ide.common.completion.getSortedProposedValues_.getSortedProposedValues(completionUtils.ceylon:352)
at com.redhat.ceylon.ide.common.completion.InvocationCompletionProposal.addValueArgumentProposals$priv$(InvocationCompletion.ceylon:775)
at com.redhat.ceylon.ide.common.completion.InvocationCompletionProposal.enterLinkedMode(InvocationCompletion.ceylon:719)
at com.redhat.ceylon.ide.common.completion.InvocationCompletionProposal.activeLinkedMode$canonical$(InvocationCompletion.ceylon:598)
at com.redhat.ceylon.ide.common.completion.InvocationCompletionProposal.activeLinkedMode(InvocationCompletion.ceylon:582)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 month ago
Samebug visitor profile picture
Unknown user
Once, 8 months ago
Samebug visitor profile picture
Unknown user
Once, 11 months ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
22 more bugmates

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