This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 215614 - IllegalArgumentException: Comparison method violates its general contract!
Summary: IllegalArgumentException: Comparison method violates its general contract!
Status: RESOLVED WONTFIX
Alias: None
Product: utilities
Classification: Unclassified
Component: Open File (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Jaroslav Havlin
URL:
Keywords: JDK_SPECIFIC
Depends on:
Blocks:
 
Reported: 2012-07-17 09:20 UTC by Petr Cyhelsky
Modified: 2012-09-05 14:26 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 179856


Attachments
stacktrace (3.53 KB, text/plain)
2012-07-17 09:20 UTC, Petr Cyhelsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Cyhelsky 2012-07-17 09:20:39 UTC
Build: NetBeans IDE 7.2 (Build 201207160020)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.2-b05, Java(TM) SE Runtime Environment, 1.7.0_06-ea-b14
OS: Linux

Stacktrace: 
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.mergeForceCollapse(TimSort.java:426)
   at java.util.TimSort.sort(TimSort.java:223)
   at java.util.TimSort.sort(TimSort.java:173)
   at java.util.Arrays.sort(Arrays.java:659)
Comment 1 Petr Cyhelsky 2012-07-17 09:20:42 UTC
Created attachment 122089 [details]
stacktrace
Comment 2 Jaroslav Havlin 2012-09-05 14:26:14 UTC
This problem is related to JDK bug 7173464.
See http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7173464

Workaround suggested in the JDK bug report:

Use the -Djava.util.Arrays.useLegacyMergeSort=true command line option to disable the Java 7 sort.

Thank you for reporting.