Page 1 of 1

ERROR Comparison Method Violates Its General Contract

Posted: Fri Feb 22, 2019 2:59 pm
by Support_Philip

I am receiving the error message "comparison method violates its general contract". What can i do to resolve this?

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

at java.util.TimSort.mergeHi(

at java.util.TimSort.mergeAt(

at java.util.TimSort.mergeCollapse(

at java.util.TimSort.sort(

at java.util.TimSort.sort(

at java.util.Arrays.sort(


This issue occurs when the JRE sorting algorithm used by .util.Arrays.sort and (indirectly) by .util.Collections.sort has been replaced. You can resolve this by re-adding the task, it will re-compile with the current java and will resolve the issue.