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 203114 - AssertionError at org.netbeans.modules.form.layoutdesign.LayoutFeeder.add
Summary: AssertionError at org.netbeans.modules.form.layoutdesign.LayoutFeeder.add
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-05 07:45 UTC by MackSix
Modified: 2011-10-14 14:58 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 181637


Attachments
stacktrace (2.83 KB, text/plain)
2011-10-05 07:45 UTC, MackSix
Details
Project that exhibits the error. (22.82 KB, application/octet-stream)
2011-10-05 07:53 UTC, MackSix
Details
7.1 Dev Build 201110050601 - Project that exhibits the error. (22.44 KB, application/zip)
2011-10-05 21:54 UTC, MackSix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2011-10-05 07:45:35 UTC
Build: NetBeans IDE Dev (Build 201110040601)
VM: Java HotSpot(TM) Client VM, 21.0-b17, Java(TM) SE Runtime Environment, 1.7.0-b147
OS: Windows Vista

User Comments:
MackSix: Trying to verticle resize a Editor Pane with 3 RadioButtons and 1 ComboBox on the right and 3 Buttons below. Will try to reproduce.




Stacktrace: 
java.lang.AssertionError
   at org.netbeans.modules.form.layoutdesign.LayoutFeeder.add(LayoutFeeder.java:448)
   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$ResizeComponentDrag.end(HandleLayer.java:2887)
   at org.netbeans.modules.form.HandleLayer$ComponentDrag.end(HandleLayer.java:2487)
   at org.netbeans.modules.form.HandleLayer.endDragging(HandleLayer.java:1253)
Comment 1 MackSix 2011-10-05 07:45:40 UTC
Created attachment 111501 [details]
stacktrace
Comment 2 MackSix 2011-10-05 07:53:06 UTC
Created attachment 111502 [details]
Project that exhibits the error.

1. Highlight jEditorPane2.
2. Grab the handle at the top of jEditorPane2 and resize it vertically by dragging the top down and snap it in alignment with the top of jRadioButton2.

It throws this error.
Comment 3 MackSix 2011-10-05 21:54:36 UTC
Created attachment 111568 [details]
7.1 Dev Build 201110050601 - Project that exhibits the error.

Horizontally resize jPanel2 and try to snap align it to the right side of jPanel3.

Error occurs.

Product Version: NetBeans IDE Dev (Build 201110050601)
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 Jan Stola 2011-10-09 09:49:17 UTC
Thank you for reproducible test-cases. I was able to reproduce the mentioned exception in both cases (using the latest development build).
Comment 5 Tomas Pavek 2011-10-12 15:54:40 UTC
I think this assertion is wrong.
http://hg.netbeans.org/jet-main/rev/6ef73851ec54
Comment 6 Quality Engineering 2011-10-14 14:58:15 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/6ef73851ec54
User: Tomas Pavek <tpavek@netbeans.org>
Log: #203114: wrong assertion, the other edge can be the one resized