When running Eclipse Juno SR1 on JRE 1.7 and exploring tables in the Data Source Explorer, the list of columns in the Columns folder is in reverse order. It is in correct order on JRE 1.6. The list of Schemas and Tables are correct. Does anyone know what is happening or how to fix this problem?
I found the answer to this problem. In JRE 1.7, they are using a new sort class for sorting arrays, TimSort is used instead of MergeSort. This is causing a problem if values are equal. Here is the working around mentioned:
This seems to be a Java 7 bug. The two workarounds I've seen are:
1. Use old merge sort from Java 6 by setting a JVM property: -Djava.util.Arrays.useLegacyMergeSort=true