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

Summary: IllegalArgumentException: Comparison method violates its general contract!
Product: debugger Reporter: ehsavoie <ehsavoie>
Component: JavaAssignee: Martin Entlicher <mentlicher>
Status: RESOLVED FIXED    
Severity: normal CC: exceptions_reporter, lallafa, mb6802, wklaczynski
Priority: P3    
Version: 7.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 182052
Attachments: stacktrace

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. ***