Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 327613 - FilteredItemsSelectionDialog$HistoryComparator violates the Comparator contract
Summary: FilteredItemsSelectionDialog$HistoryComparator violates the Comparator contract
Status: CLOSED DUPLICATE of bug 295920
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.5.2   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-12 16:45 EDT by Dmitry Karasik CLA
Modified: 2010-10-13 02:17 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Karasik CLA 2010-10-12 16:45:26 EDT
Open the Open Type dialog with ctrl-shift-T
start typing around quickly.

every so often I get an error dialog and the following logged to my error log:

java.lang.IllegalArgumentException: Comparison method violates its general contract!
	at java.util.TimSort.mergeHi(TimSort.java:868)
	at java.util.TimSort.mergeAt(TimSort.java:485)
	at java.util.TimSort.mergeCollapse(TimSort.java:410)
	at java.util.TimSort.sort(TimSort.java:214)
	at java.util.TimSort.sort(TimSort.java:173)
	at java.util.Arrays.sort(Arrays.java:653)
	at java.util.Collections.sort(Collections.java:217)
	at org.eclipse.ui.dialogs.FilteredItemsSelectionDialog$ContentProvider.getSortedItems(FilteredItemsSelectionDialog.java:2837)
	at org.eclipse.ui.dialogs.FilteredItemsSelectionDialog$ContentProvider.rememberResult(FilteredItemsSelectionDialog.java:2850)
	at org.eclipse.ui.dialogs.FilteredItemsSelectionDialog$FilterJob.filterContent(FilteredItemsSelectionDialog.java:2186)
	at org.eclipse.ui.dialogs.FilteredItemsSelectionDialog$FilterJob.internalRun(FilteredItemsSelectionDialog.java:2124)
	at org.eclipse.ui.dialogs.FilteredItemsSelectionDialog$FilterJob.doRun(FilteredItemsSelectionDialog.java:2096)
	at org.eclipse.ui.dialogs.FilteredItemsSelectionDialog$FilterJob.run(FilteredItemsSelectionDialog.java:2083)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Comment 1 Dani Megert CLA 2010-10-13 02:17:29 EDT
Dmitry, which VM are you using? This looks like a duplicate of bug 295920.

*** This bug has been marked as a duplicate of bug 295920 ***