I am running a Jetty web application using IBM JDK 7 which throws the following exception even after setting java.util.Arrays.useLegacyMergeSort=true java.lang.IllegalArgumentException: Comparison method violates its general contract!
I have added the following line of code to test that the property is set correctly and it is. System.getProperty("java.util.Arrays.useLegacyMergeSort") returns true
Any idea why when the property is set correctly to use the legacy merge sort that I still get the java.lang.IllegalArgumentException?