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 209483 - IllegalArgumentException: Comparison method violates its general contract!
Summary: IllegalArgumentException: Comparison method violates its general contract!
Status: RESOLVED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
: 212456 214586 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-03-12 15:41 UTC by ehsavoie
Modified: 2012-06-22 14:21 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 182052


Attachments
stacktrace (4.08 KB, text/plain)
2012-03-12 15:41 UTC, ehsavoie
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ehsavoie 2012-03-12 15:41:49 UTC
Build: NetBeans IDE 7.1 (Build 201112071828)
VM: Java HotSpot(TM) 64-Bit Server VM, 22.1-b02, Java(TM) SE Runtime Environment, 1.7.0_03-b04
OS: Linux

User Comments:
mb6802: Starting the debug on a maven-based project.  (Resending under actual account instead of guest).

GUEST: Trying to start debugger on a maven-based project.




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.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:659)
Comment 1 ehsavoie 2012-03-12 15:41:54 UTC
Created attachment 116618 [details]
stacktrace
Comment 2 Martin Entlicher 2012-04-25 12:12:26 UTC
It's likely, that the problem is caused by null indexes, that are compared as equals to other items. Thus two equal items (nulls) can be compared as equal to two items, that are not equal.
Comment 3 Martin Entlicher 2012-05-14 12:15:30 UTC
*** Bug 212456 has been marked as a duplicate of this bug. ***
Comment 4 Martin Entlicher 2012-05-18 07:33:42 UTC
Fixed by changeset:   222148:d3d3a12bd9c7
http://hg.netbeans.org/main/rev/d3d3a12bd9c7
Comment 5 Quality Engineering 2012-05-19 09:58:29 UTC
Integrated into 'main-golden', will be available in build *201205190400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/d3d3a12bd9c7
User: mentlicher@netbeans.org
Log: #209483: Fixed the sorting of source roots.
Comment 6 Martin Entlicher 2012-06-22 14:21:37 UTC
*** Bug 214586 has been marked as a duplicate of this bug. ***