Skip to main content


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] Wed, 22 May 2013 00:11 Go to next message
Eclipse UserFriend
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 05:01 Go to previous message
Eclipse UserFriend
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 Apr 24 22:09:16 GMT 2024

Powered by FUDForum. Page generated in 0.03845 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top