I am not using any Comparators/Sorting in my Java code, still it is throwing ” java.lang.IllegalArgumentException: Comparison method violates its general contract!” Exception. Below is the piece of code that throws exception on the restTemplate.exchange line on debugging. Started getting this exception when I changed the version of spring-boot-starter-parent from 2.3.9 to 2.5.3 How should I resolve this? Stack Trace:
Tag: timsort
Java Error: java.lang.IllegalArgumentException: Comparison method violates its general contract
I am working on a old application which was originally written in Java 6 and which was upgraded to Java 7 a couple of years ago. In this application i am using a Collection.Sort to sort a list with a custom compare method by implementing Comparator interface. Type of objects in the list are CompanySchedule which have 3 properties companyName,