Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DTP » Data Source Explorer Column list reverse order Java 7
Data Source Explorer Column list reverse order Java 7 [message #1059857] Tue, 21 May 2013 20:11 Go to next message
Francine Mising name is currently offline Francine Mising name
Messages: 14
Registered: July 2009
Junior Member
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?
Re: Data Source Explorer Column list reverse order Java 7 [message #1062842 is a reply to message #1059857] Tue, 11 June 2013 01:01 Go to previous message
Francine Mising name is currently offline Francine Mising name
Messages: 14
Registered: July 2009
Junior Member
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
------------------

mentioned in: http://www.coderanch.com/t/587592/java/java/sort-TimSort-MergeSort-java-Dangerous
Previous Topic:Handle DB table/column changes and migration to existing DB
Next Topic:driver combobox/dropdown is empty on windows 7
Goto Forum:
  


Current Time: Wed Jul 30 23:26:10 EDT 2014

Powered by FUDForum. Page generated in 0.01557 seconds