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 202068

Summary: IllegalArgumentException: Comparison method violates its general contract!
Product: guibuilder Reporter: asenk
Component: CodeAssignee: issues@guibuilder <issues>
Status: RESOLVED WONTFIX    
Severity: normal Keywords: JDK_SPECIFIC
Priority: P3    
Version: 7.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 180519
Attachments: stacktrace

Description asenk 2011-09-13 13:24:40 UTC
Build: NetBeans IDE Dev (Build 201109120600)
VM: Java HotSpot(TM) Client VM, 21.0-b17, Java(TM) SE Runtime Environment, 1.7.0-b147
OS: Linux

User Comments:
asenk: Product Version: NetBeans IDE Dev (Build 201109120600)
Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b17
System: Linux version 2.6.38-11-generic running on i386; UTF-8; en_US (nb)

1.Create new JFrame form, add some swing controls, set GridBagLayout
2.Customize Layout...
3.Enable uniform gaps
4.Close
5.Customize Layout...

GUEST: trying to edit gridbaglayout for a topcomponent in a netbeans platform app

GUEST: I try to change the "Weight X" value of an GridBagLayout.




Stacktrace: 
java.lang.IllegalArgumentException: Comparison method violates its general contract!
   at java.util.TimSort.mergeLo(TimSort.java:747)
   at java.util.TimSort.mergeAt(TimSort.java:483)
   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)
Comment 1 asenk 2011-09-13 13:24:44 UTC
Created attachment 110710 [details]
stacktrace
Comment 2 Jan Stola 2011-09-15 11:52:03 UTC
It seems to be a bug in JDK (as the stack-trace that contains no code from GUI Builder suggests). See http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7075600