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 220248 - IllegalArgumentException: Comparison method violates its general contract!
Summary: IllegalArgumentException: Comparison method violates its general contract!
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-17 08:14 UTC by aldobrucale
Modified: 2012-10-18 11:26 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 189428


Attachments
stacktrace (1.10 KB, text/plain)
2012-10-17 08:14 UTC, aldobrucale
Details

Note You need to log in before you can comment on or make changes to this bug.
Description aldobrucale 2012-10-17 08:14:55 UTC
Build: NetBeans IDE 7.2 (Build 201207171143)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.3-b01, Java(TM) SE Runtime Environment, 1.7.0_07-b10
OS: Linux

User Comments:
aldobrucale: I didn'nt notice the exception warning in the ide when it appeared: I was probably editing a maven pom file.

aldobrucale: Now I know: I tried to search for "jetty 6.1" in the maven "add dependency" dialog box

GUEST: Try to add a maven dependency. Error occurs while searching




Stacktrace: 
java.lang.IllegalArgumentException: Comparison method violates its general contract!
   at java.util.ComparableTimSort.mergeHi(ComparableTimSort.java:835)
   at java.util.ComparableTimSort.mergeAt(ComparableTimSort.java:453)
   at java.util.ComparableTimSort.mergeCollapse(ComparableTimSort.java:374)
   at java.util.ComparableTimSort.sort(ComparableTimSort.java:182)
   at java.util.ComparableTimSort.sort(ComparableTimSort.java:146)
   at java.util.Arrays.sort(Arrays.java:472)
Comment 1 aldobrucale 2012-10-17 08:14:57 UTC
Created attachment 126054 [details]
stacktrace
Comment 2 Milos Kleint 2012-10-18 11:26:17 UTC
I guess caused by non-matching hashcode() and equals()

https://hg.netbeans.org/core-main/rev/f8c4520cb38e