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 203386 - AssertionError at org.netbeans.modules.form.layoutdesign.LayoutOperations.eliminateEndingGaps
Summary: AssertionError at org.netbeans.modules.form.layoutdesign.LayoutOperations.eli...
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-09 07:59 UTC by MackSix
Modified: 2011-10-26 19:42 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 181794


Attachments
stacktrace (3.27 KB, text/plain)
2011-10-09 08:00 UTC, MackSix
Details
Project that exhibits the error. (23.60 KB, application/zip)
2011-10-13 20:10 UTC, MackSix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2011-10-09 07:59:58 UTC
This bug was originally marked as duplicate of bug 202707, 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 201110070600)
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 jTextArea on jPanel.




Stacktrace: 
java.lang.AssertionError
   at org.netbeans.modules.form.layoutdesign.LayoutOperations.eliminateEndingGaps(LayoutOperations.java:1986)
   at org.netbeans.modules.form.layoutdesign.LayoutOperations.optimizeGaps2(LayoutOperations.java:1870)
   at org.netbeans.modules.form.layoutdesign.LayoutDesigner.intervalRemoved(LayoutDesigner.java:4243)
   at org.netbeans.modules.form.layoutdesign.LayoutDesigner.removeComponentInterval(LayoutDesigner.java:4120)
   at org.netbeans.modules.form.layoutdesign.LayoutDesigner.createFeeder(LayoutDesigner.java:1257)
   at org.netbeans.modules.form.layoutdesign.LayoutDesigner.addComponents(LayoutDesigner.java:1151)
Comment 1 MackSix 2011-10-09 08:00:03 UTC
Created attachment 111725 [details]
stacktrace
Comment 2 Jan Stola 2011-10-10 12:35:48 UTC
I am sorry, I am not able to reproduce this issue and the attached stack-trace
is not sufficient to track the problem down. Are you still able to reproduce
it? If so, could you, please, provide more details? It would be ideal to attach
the problematic form (both .java and .form files) saved in the last good state
and describe _exact_ steps that lead to the exception. Thank you in advance.
Comment 3 MackSix 2011-10-13 20:10:03 UTC
Created attachment 112020 [details]
Project that exhibits the error.

1) Open up attached project. 
2) Open NewJFrame.java in designer.
3) Try to move textField4 to the left a bit.

This AssertionError is thrown.

Product Version: NetBeans IDE Dev (Build 201110120600)
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)

Stacktrace: http://statistics.netbeans.org/analytics/exception.do?id=533647
Comment 4 Jan Stola 2011-10-17 09:23:32 UTC
Thank you for a reproducible test-case. I was able to reproduce the exception using the attached project and the described steps.
Comment 5 Tomas Pavek 2011-10-26 19:42:08 UTC
I can reproduce this in build 201110120600, but not in current build. Must have been fixed recently together with something else.