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 203677

Summary: AssertionError at org.netbeans.modules.form.layoutdesign.LayoutOperations.extract
Product: guibuilder Reporter: MackSix
Component: Natural LayoutAssignee: issues@guibuilder <issues>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 7.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 181984
Attachments: stacktrace
Project that exhibits the error.
Screenshot of action.

Description MackSix 2011-10-13 20:18:21 UTC
Build: NetBeans IDE Dev (Build 201110120600)
VM: Java HotSpot(TM) Client VM, 21.0-b17, Java(TM) SE Runtime Environment, 1.7.0-b147
OS: Windows Vista

User Comments:
MackSix: Moving an AWT checkbox from one position to another.




Stacktrace: 
java.lang.AssertionError
   at org.netbeans.modules.form.layoutdesign.LayoutOperations.extract(LayoutOperations.java:94)
   at org.netbeans.modules.form.layoutdesign.LayoutOperations.extract(LayoutOperations.java:87)
   at org.netbeans.modules.form.layoutdesign.LayoutFeeder.mergeParallelInclusions(LayoutFeeder.java:4512)
   at org.netbeans.modules.form.layoutdesign.LayoutFeeder.add(LayoutFeeder.java:410)
   at org.netbeans.modules.form.layoutdesign.LayoutDesigner.addComponents(LayoutDesigner.java:1241)
   at org.netbeans.modules.form.layoutdesign.LayoutDesigner.endMoving(LayoutDesigner.java:1153)
Comment 1 MackSix 2011-10-13 20:18:25 UTC
Created attachment 112021 [details]
stacktrace
Comment 2 Jan Stola 2011-10-17 09:30:33 UTC
I am sorry, I am not able to reproduce this issue and the attched stack-trace is not sufficient to track the problem down. Are you still able to reproduce it? If so, could you, please, provide more details? It would be ideal to attach the problematic form (both .java and .form files) saved in the last good state and describe _exact_ steps that lead to the exception. Thank you in advance.
Comment 3 MackSix 2011-10-21 05:20:04 UTC
Created attachment 112287 [details]
Project that exhibits the error.

1) Open project in NetBeans and open NewJFrame1.java in designer view.
2) Move jComboBox1 to the left and snap to side of jButton2. (See attached screenshot for placement.)

This AssertionError is thrown.

Product Version: NetBeans IDE Dev (Build 201110200600)
Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b17
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
Comment 4 MackSix 2011-10-21 05:21:03 UTC
Created attachment 112288 [details]
Screenshot of action.
Comment 5 Jan Stola 2011-10-21 09:00:16 UTC
Thank you for the additional information. I am able to reproduce the exception now.
Comment 6 Tomas Pavek 2011-11-14 16:18:08 UTC
Fixed.
http://hg.netbeans.org/jet-main/rev/c043a0793160
Comment 7 Quality Engineering 2011-11-16 15:50:10 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/c043a0793160
User: Tomas Pavek <tpavek@netbeans.org>
Log: #203677: forced aligning inclusion should not be added/considered if not needed