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 TheDarkFlame
, 1 year ago
Comparison method violates its general contract!
via atlauncher.com by Unknown author, 2 years ago
Comparison method violates its general contr act!
via JDK Bug System by Webbug Group, 1 year ago
Comparison method violates its general contract!
via java.net by Unknown author, 2 years ago
via Stack Overflow by Lakatos Gyula
, 8 months ago
Comparison method violates its general contract!
java.lang.IllegalArgumentException: Comparison method violates its general contract!
at java.util.ComparableTimSort.mergeHi(ComparableTimSort.java:866)
at java.util.ComparableTimSort.mergeAt(ComparableTimSort.java:483)
at java.util.ComparableTimSort.mergeForceCollapse(ComparableTimSort.java:422)
at java.util.ComparableTimSort.sort(ComparableTimSort.java:222)
at java.util.Arrays.sort(Arrays.java:1312)
at java.util.Arrays.sort(Arrays.java:1506)
at java.util.ArrayList.sort(ArrayList.java:1454)
at java.util.Collections.sort(Collections.java:141)
at net.minecraft.command.CommandHelp.func_184900_a(SourceFile:118)
at net.minecraft.command.CommandHelp.func_184881_a(SourceFile:73)
at net.minecraft.command.CommandHandler.func_175786_a(CommandHandler.java:104)
at net.minecraft.command.CommandHandler.func_71556_a(CommandHandler.java:83)
at net.minecraft.server.dedicated.DedicatedServer.func_71333_ah(DedicatedServer.java:423)
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:388)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471)

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, 1 month ago
Samebug visitor profile picture
Unknown user
Once, 8 months ago
Samebug visitor profile picture
Unknown user
Once, 10 months ago
13 more bugmates

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