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 204473 - [71cat] AssertionError at org.netbeans.modules.form.layoutdesign.LayoutInterval.getCommonParent
Summary: [71cat] AssertionError at org.netbeans.modules.form.layoutdesign.LayoutInterv...
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-31 18:14 UTC by david1234
Modified: 2012-05-09 08:42 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 1313


Attachments
stacktrace (3.25 KB, text/plain)
2011-10-31 18:14 UTC, david1234
Details
Project that exhibits the problem. (16.58 KB, application/zip)
2012-04-06 11:41 UTC, MackSix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description david1234 2011-10-31 18:14:30 UTC
Build: NetBeans IDE 7.1 Beta (Build 201109252201)
VM: Java HotSpot(TM) Client VM, 20.0-b11, Java(TM) SE Runtime Environment, 1.6.0_25-b06
OS: Windows XP

User Comments:
kawazu428: - created JLabel in JFrame form window
- created a copy of that label (Edit - Copy, Edit - Paste)
- tried to move the copy

initialzero: Added a panel to an existing panel moved child from existing panel to new panel. attempted to adjust the top location of the existing panel child and this assertion appeared.

GUEST: Attempting to resize a progreee bar with designer.

david1234: resizing JLabels

GUEST: adjusting the height of a JTree within a new parent JPanel

MackSix: Horizontal resize of jRadioButton.




Stacktrace: 
java.lang.AssertionError
   at org.netbeans.modules.form.layoutdesign.LayoutInterval.getCommonParent(LayoutInterval.java:607)
   at org.netbeans.modules.form.layoutdesign.LayoutFeeder.orthogonalOverlap(LayoutFeeder.java:4006)
   at org.netbeans.modules.form.layoutdesign.LayoutFeeder.analyzeSequential(LayoutFeeder.java:3877)
   at org.netbeans.modules.form.layoutdesign.LayoutFeeder.analyzeParallel(LayoutFeeder.java:3786)
   at org.netbeans.modules.form.layoutdesign.LayoutFeeder.add(LayoutFeeder.java:394)
   at org.netbeans.modules.form.layoutdesign.LayoutDesigner.addComponents(LayoutDesigner.java:1204)
Comment 1 david1234 2011-10-31 18:14:34 UTC
Created attachment 112619 [details]
stacktrace
Comment 2 Jan Stola 2011-11-01 13:27:35 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 2012-04-06 11:41:15 UTC
Created attachment 117939 [details]
Project that exhibits the problem.

Product Version: NetBeans IDE Dev (Build 201204050400)
Java: 1.7.0_03; Java HotSpot(TM) Client VM 22.1-b02
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)


1.) Open up attached project in NetBeans.
2.) Open up NewJFrame.java in GUI Editor in Design mode.
3.) Resize jTabbedPane 1 by dragging bottom up and snapping to the bottom of jInternalFrame1.

This AssertionError occurs.
Comment 4 Jan Stola 2012-04-11 15:37:53 UTC
Thank you for the test-case. I am able to reproduce the mentioned exception using the attached project and the described steps.
Comment 5 Tomas Pavek 2012-05-09 08:42:32 UTC
Made a fix that should reduce errors like this in general (losing information about original position of a component that is moved or resized):
http://hg.netbeans.org/jet-main/rev/4258c36c7fc2

With this fix I can't reproduce the AE on given test case anymore.