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 202458 - [71cat] AssertionError at org.netbeans.modules.form.layoutdesign.LayoutDesigner.endMoving
Summary: [71cat] AssertionError at org.netbeans.modules.form.layoutdesign.LayoutDesign...
Status: RESOLVED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-21 21:08 UTC by javydreamercsw
Modified: 2011-09-26 12:40 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 181288


Attachments
stacktrace (2.70 KB, text/plain)
2011-09-21 21:08 UTC, javydreamercsw
Details

Note You need to log in before you can comment on or make changes to this bug.
Description javydreamercsw 2011-09-21 21:08:11 UTC
This bug was originally marked as duplicate of bug 159079, 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 201109202329)
VM: Java HotSpot(TM) Client VM, 21.0-b17, Java(TM) SE Runtime Environment, 1.7.0-b147
OS: Windows 7

User Comments:
javydreamercsw: Dragging a button from the palette.

claus_ch: I have a simple maven-based test project having a JFrame and a TextArea (everything default). The crash happened, while draging a ComboBox onto a blank spot of the JPanel in Mantisse.

asenk: I made a lot of steps before this exception.
Posible steps to reproduce:
Create new J2SE project and crete new JFrame Form
--Drag a Radio Button from pallete to JFrame Form




Stacktrace: 
java.lang.AssertionError
   at org.netbeans.modules.form.layoutdesign.LayoutDesigner.endMoving(LayoutDesigner.java:1119)
   at org.netbeans.modules.form.HandleLayer$NewComponentDrag.end(HandleLayer.java:3159)
   at org.netbeans.modules.form.HandleLayer$NewComponentDropListener.drop(HandleLayer.java:3356)
   at java.awt.dnd.DropTarget.drop(DropTarget.java:450)
   at sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(SunDropTargetContextPeer.java:537)
   at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchDropEvent(SunDropTargetContextPeer.java:851)
Comment 1 javydreamercsw 2011-09-21 21:08:15 UTC
Created attachment 110995 [details]
stacktrace
Comment 2 Tomas Pavek 2011-09-22 10:01:36 UTC
Cannot reproduce, but I think this can happen when the last mouse move event comes from the white area around the form but then the mouse pressed event is already in the area of the form. You move mouse too quickly! ;)
Comment 3 Tomas Pavek 2011-09-22 11:16:00 UTC
Fixed.

http://hg.netbeans.org/jet-main/rev/0c1fdf436eb2
Comment 4 Quality Engineering 2011-09-23 13:21:42 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/0c1fdf436eb2
User: Tomas Pavek <tpavek@netbeans.org>
Log: #202458: prevent dropping into a different target container than was the last mouse move operation