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

Summary: IllegalArgumentException: Comparison method violates its general contract
Product: platform Reporter: ngx472 <ngx472>
Component: -- Other --Assignee: Antonin Nebuzelsky <anebuzelsky>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

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)