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 193592 - [70cat] AssertionError at org.netbeans.modules.form.layoutdesign.LayoutFeeder.mergeSequentialInclusions
Summary: [70cat] AssertionError at org.netbeans.modules.form.layoutdesign.LayoutFeeder...
Status: RESOLVED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-19 09:26 UTC by marcotts
Modified: 2011-10-18 14:17 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 175146


Attachments
stacktrace (2.20 KB, text/plain)
2010-12-19 09:26 UTC, marcotts
Details
7.1 Dev Build 201110040601 - Project that exhibits the error. (25.87 KB, application/zip)
2011-10-05 09:24 UTC, MackSix
Details
.form file to reproduce (3.64 KB, text/plain)
2011-10-14 16:13 UTC, Tomas Pavek
Details
.java file to reproduce (3.33 KB, text/plain)
2011-10-14 16:14 UTC, Tomas Pavek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description marcotts 2010-12-19 09:26:03 UTC
This bug was originally marked as duplicate of bug 77875, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 201012150001)
VM: Java HotSpot(TM) 64-Bit Server VM, 16.3-b01, Java(TM) SE Runtime Environment, 1.6.0_20-b02
OS: Windows 7

User Comments:
GUEST: I was trying to resize a lable on a from I was designing

marcotts: resizing a jpanel

GUEST: Resizing a JTextArea in the visual GUI editor

swpalmer: resizing JPanel

hanta: Resizing in the Swing GUI editor a panel to the same size of another panel

GUEST: Laying out a gui using design view




Stacktrace: 
java.lang.AssertionError
   at org.netbeans.modules.form.layoutdesign.LayoutFeeder.mergeSequentialInclusions(LayoutFeeder.java:2790)
   at org.netbeans.modules.form.layoutdesign.LayoutFeeder.add(LayoutFeeder.java:311)
   at org.netbeans.modules.form.layoutdesign.LayoutDesigner.addComponents(LayoutDesigner.java:828)
   at org.netbeans.modules.form.layoutdesign.LayoutDesigner.endMoving(LayoutDesigner.java:753)
   at org.netbeans.modules.form.HandleLayer$ResizeComponentDrag.end(HandleLayer.java:2837)
   at org.netbeans.modules.form.HandleLayer$ComponentDrag.end(HandleLayer.java:2477)
Comment 1 marcotts 2010-12-19 09:26:09 UTC
Created attachment 104260 [details]
stacktrace
Comment 2 MackSix 2011-10-05 09:24:05 UTC
Created attachment 111515 [details]
7.1 Dev Build 201110040601 - Project that exhibits the error.

Try to drag the top of jButton3 up and snap it to the top of jButton2. 

It throws this error.

Probably has to do with the Filler (glue) on the panel.

Product Version: NetBeans IDE Dev (Build 201110040601)
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 3 Jan Stola 2011-10-13 14:05:30 UTC
I am sorry, I am not able to reproduce this exception (AssertionError from LayoutFeeder.mergeSequentialInclusions). The attached test-case throws a different exception when I use either Build 20111004 or the latest development build. I have submitted a separate issue for that exception (see issue 203656).

I am closing this issue as incomplete because there is no reproducible test-case for the original exception. Feel free to reopen this issue if you find such a test-case. Thank you in advance.
Comment 4 Tomas Pavek 2011-10-14 16:13:27 UTC
Created attachment 112069 [details]
.form file to reproduce
Comment 5 Tomas Pavek 2011-10-14 16:14:58 UTC
Created attachment 112070 [details]
.java file to reproduce

I've found a reproducible test case. Just resize jButton3 to align at top with the other components.
Comment 6 Tomas Pavek 2011-10-17 08:21:27 UTC
Fixed the mentioned test case:
http://hg.netbeans.org/jet-main/rev/5015e6b90a1c
Comment 7 Quality Engineering 2011-10-18 14:17:40 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/5015e6b90a1c
User: Tomas Pavek <tpavek@netbeans.org>
Log: #193592, #203656, and some more tweaks