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 202708

Summary: AssertionError at org.netbeans.modules.form.layoutdesign.LayoutFeeder.correctOriginalInclusion
Product: guibuilder Reporter: MackSix
Component: CodeAssignee: issues@guibuilder <issues>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 7.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 181421
Attachments: stacktrace
Project that causes error.

Description MackSix 2011-09-27 04:02:19 UTC
Build: NetBeans IDE 7.1 Beta (Build 201109222201)
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 2 jLabels and a jCheckBox around on a panel. I will try to reproduce it.




Stacktrace: 
java.lang.AssertionError
   at org.netbeans.modules.form.layoutdesign.LayoutFeeder.correctOriginalInclusion(LayoutFeeder.java:1052)
   at org.netbeans.modules.form.layoutdesign.LayoutFeeder.add(LayoutFeeder.java:297)
   at org.netbeans.modules.form.layoutdesign.LayoutDesigner.addComponents(LayoutDesigner.java:1204)
   at org.netbeans.modules.form.layoutdesign.LayoutDesigner.endMoving(LayoutDesigner.java:1116)
   at org.netbeans.modules.form.HandleLayer$ExistingComponentDrag.end(HandleLayer.java:2752)
   at org.netbeans.modules.form.HandleLayer$ComponentDrag.end(HandleLayer.java:2487)
Comment 1 MackSix 2011-09-27 04:02:24 UTC
Created attachment 111213 [details]
stacktrace
Comment 2 MackSix 2011-09-27 04:07:08 UTC
I can't move jLabel1 now without receiving this same assertion error. I closed NetBeans and reopened it and it still gives me the error. I will upload the project. This also occurs if I open the project in Product Version: NetBeans IDE Dev (Build 201109260601)
Comment 3 MackSix 2011-09-27 04:08:21 UTC
Created attachment 111214 [details]
Project that causes error.

Try to move jLabel2 and assertion error occurs.
Comment 4 MackSix 2011-09-27 04:09:17 UTC
Sorry, it is caused by moving jLabel2 not jLabel1.
Comment 5 Tomas Pavek 2011-09-27 09:49:54 UTC
Thanks for the test case. I thought this assertion was too restrictive, but wanted to see a case where it fails to understand.

Fixed.
http://hg.netbeans.org/jet-main/rev/7a8283baa6eb
Comment 6 Quality Engineering 2011-09-28 14:02:57 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/7a8283baa6eb
User: Tomas Pavek <tpavek@netbeans.org>
Log: #202708: too restrictive assertion (a parallel group can be created underneath the original parent)