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 250186 - IllegalArgumentException: Comparison method violates its general contract!
Summary: IllegalArgumentException: Comparison method violates its general contract!
Status: RESOLVED WORKSFORME
Alias: None
Product: utilities
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.1
Hardware: All All
: P4 normal (vote)
Assignee: Jaroslav Havlin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-03 16:55 UTC by Jiri Kovalsky
Modified: 2015-02-13 14:25 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 215167


Attachments
stacktrace (3.42 KB, text/plain)
2015-02-03 16:55 UTC, Jiri Kovalsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Kovalsky 2015-02-03 16:55:22 UTC
Build: NetBeans IDE Dev (Build 201502030002)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.25-b02, Java(TM) SE Runtime Environment, 1.8.0_25-b17
OS: Linux

User Comments:
jkovalsky: I dragged 2015-02-03.hb file from my DropBox backup folder which contains binary data of our Home Budget mobile application and dropped it in NetBeans Editor.




Stacktrace: 
java.lang.IllegalArgumentException: Comparison method violates its general contract!
   at java.util.TimSort.mergeHi(TimSort.java:895)
   at java.util.TimSort.mergeAt(TimSort.java:512)
   at java.util.TimSort.mergeForceCollapse(TimSort.java:453)
   at java.util.TimSort.sort(TimSort.java:250)
   at java.util.Arrays.sort(Arrays.java:1438)
   at sun.awt.datatransfer.DataTransferer.setToSortedDataFlavorArray(DataTransferer.java:2400)
Comment 1 Jiri Kovalsky 2015-02-03 16:55:24 UTC
Created attachment 151797 [details]
stacktrace
Comment 2 Jaroslav Havlin 2015-02-13 12:28:16 UTC
I'm sorry, I cannot reproduce this bug (using some binary file renamed the same name as you reported).
It seems that NetBeans is not creating custom data flavors. Maybe this is a random JDK bug.
Decreasing priority for now. Please increase it if you can reproduce the bug.
Thank you for reporting.
Comment 3 Jiri Kovalsky 2015-02-13 14:25:06 UTC
I cannot reproduce it either now with the very same file. Closing. Thanks for your evaluation Jardo. :|