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 257997 - IllegalArgumentException: Comparison method violates its general contract
Summary: IllegalArgumentException: Comparison method violates its general contract
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Antonin Nebuzelsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-15 18:48 UTC by ngx472
Modified: 2016-02-24 12:29 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ngx472 2016-02-15 18:48:35 UTC
Did not find duplicate for this one although stak trace begins the same
Here it's rooted at 
org.openide.loaders.FolderList.carefullySort(FolderList.java:600)

Do not ask for repro, it's transient when editing folder property and asking to "sort by Modification Time"

Hint(?): the folder is big and under SVN

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)
                at java.util.Collections.sort(Collections.java:217)
                at org.openide.loaders.FolderList.carefullySort(FolderList.java:600)
                at org.openide.loaders.FolderList.getObjects(FolderList.java:570)
                at org.openide.loaders.FolderList.access$600(FolderList.java:77)
                at org.openide.loaders.FolderList$ComparatorTask.run(FolderList.java:1028)
                at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)
                at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68)
                at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2058)