Skip to main content



      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
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 01: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: Fri Jul 25 16:10:23 EDT 2025

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

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

Back to the top