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 203756 - 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-15 06:15 UTC by MackSix
Modified: 2011-10-20 14:24 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 182014


Attachments
stacktrace (2.84 KB, text/plain)
2011-10-15 06:15 UTC, MackSix
Details
Project that exhibits the error. (35.89 KB, application/zip)
2011-10-15 06:45 UTC, MackSix
Details
Screenshot of action. (198.30 KB, image/png)
2011-10-15 06:47 UTC, MackSix
Details

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

User Comments:
MackSix: Moved a jList up a little bit around other components on a jFrame.




Stacktrace: 
java.lang.AssertionError
   at org.netbeans.modules.form.layoutdesign.LayoutFeeder.add(LayoutFeeder.java:428)
   at org.netbeans.modules.form.layoutdesign.LayoutDesigner.addComponents(LayoutDesigner.java:1244)
   at org.netbeans.modules.form.layoutdesign.LayoutDesigner.endMoving(LayoutDesigner.java:1156)
   at org.netbeans.modules.form.HandleLayer$ExistingComponentDrag.end(HandleLayer.java:2752)
   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-15 06:15:12 UTC
Created attachment 112079 [details]
stacktrace
Comment 2 MackSix 2011-10-15 06:45:58 UTC
Created attachment 112080 [details]
Project that exhibits the error.

1) Open attached project.
2) Open NewJFrame1.java
3) Move jList1 up just a bit until it snaps to the "large preferred distance" of the component above without snapping to any guideline on the left side. See attached screenshot for position.

This AssertionError occurs.

Product Version: NetBeans IDE Dev (Build 201110140600)
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 MackSix 2011-10-15 06:47:50 UTC
Created attachment 112081 [details]
Screenshot of action.
Comment 4 MackSix 2011-10-15 06:52:41 UTC
If snapped to the left side of jScrollBar1 at the same time as the above placement, a different AssersionError is thrown.
Comment 5 Jan Stola 2011-10-19 13:04:07 UTC
Fixed - the mentioned exceptions are no longer thrown.

Modified file: http://hg.netbeans.org/jet-main/rev/ebb3a538d06f
Comment 6 Quality Engineering 2011-10-20 14:24:46 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/ebb3a538d06f
User: Tomas Pavek <tpavek@netbeans.org>
Log: #203756: tunning some edge conditions