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 203486 - AssertionError at org.netbeans.modules.form.layoutdesign.LayoutFeeder.addToGroup
Summary: AssertionError at org.netbeans.modules.form.layoutdesign.LayoutFeeder.addToGroup
Status: RESOLVED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Natural Layout (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-11 09:24 UTC by Jan Stola
Modified: 2011-10-12 14:21 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 169380


Attachments
stacktrace (3.05 KB, text/plain)
2011-10-11 09:24 UTC, Jan Stola
Details
Project exhibiting the exception. (24.58 KB, application/x-zip-compressed)
2011-10-11 09:40 UTC, Jan Stola
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Stola 2011-10-11 09:24:25 UTC
Build: NetBeans IDE Dev (Build 20111009-a9e7469407ae)
VM: Java HotSpot(TM) Client VM, 20.2-b06, Java(TM) SE Runtime Environment, 1.6.0_27-b07
OS: Windows 7

User Comments:
GUEST: Add TexField inside a jPanel

GUEST: moving text fields in gui builder




Stacktrace: 
java.lang.AssertionError
   at org.netbeans.modules.form.layoutdesign.LayoutFeeder.addToGroup(LayoutFeeder.java:1936)
   at org.netbeans.modules.form.layoutdesign.LayoutFeeder.mergeParallelInclusions(LayoutFeeder.java:4503)
   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)
   at org.netbeans.modules.form.HandleLayer$ExistingComponentDrag.end(HandleLayer.java:2752)
Comment 1 Jan Stola 2011-10-11 09:24:30 UTC
Created attachment 111832 [details]
stacktrace
Comment 2 Jan Stola 2011-10-11 09:38:35 UTC
This issue was originally mentioned in issue 203449.

Steps to reproduce:
1. Open the attached project.
2. Open NewJFrame.java.
3. Move jTextArea2 under jList2
   - with the preferred gap from jList2
   - with the preferred gap from the right size of the container
   => the attached exception is thrown.
Comment 3 Jan Stola 2011-10-11 09:40:41 UTC
Created attachment 111834 [details]
Project exhibiting the exception.
Comment 4 Tomas Pavek 2011-10-11 17:32:19 UTC
Fixed.
http://hg.netbeans.org/jet-main/rev/4a5bee3edd69
Comment 5 Quality Engineering 2011-10-12 14:21:38 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/4a5bee3edd69
User: Tomas Pavek <tpavek@netbeans.org>
Log: #203486: found inclusion not properly detected if it replaced a less suitable found earlier, may lead to 2 same inclusions in the final list