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 113887 - Clicking Attributes container from the project tree throws java.lang.AssertionError
Summary: Clicking Attributes container from the project tree throws java.lang.Assertio...
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: Diagram Class (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P2 blocker (vote)
Assignee: issues@uml
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2007-08-27 18:18 UTC by Joanne Lau
Modified: 2007-08-28 22:18 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joanne Lau 2007-08-27 18:18:30 UTC
NB: 070827 from hudson build 2816

Steps to repro:
1) Create a class diagram and drop a class element to the diagram
2) From the diagram editor,  add 3 attributes to the class element
3) From the project tree, click Attributes
  
   Exception is thrown

java.lang.AssertionError: bad equals/hashCode in private int at1 vs. private int at1
	at org.openide.nodes.Children$Keys.setKeys(Children.java:2082)
	at org.openide.nodes.FilterNode$ChildrenAdapter.run(FilterNode.java:1480)
	at org.openide.nodes.FilterNode$Children.updateKeys(FilterNode.java:1433)
	at org.openide.nodes.FilterNode$Children.addNotifyImpl(FilterNode.java:1326)
	at org.openide.nodes.FilterNode$Children.addNotify(FilterNode.java:1318)
	at org.openide.nodes.Children.callAddNotify(Children.java:516)
	at org.openide.nodes.Children.getArray(Children.java:558)
	at org.openide.nodes.Children.getNodes(Children.java:400)
	at org.openide.explorer.view.VisualizerNode.getChildren(VisualizerNode.java:222)
	at org.openide.explorer.view.VisualizerNode.getChildCount(VisualizerNode.java:268)
	at javax.swing.tree.DefaultTreeModel.getChildCount(DefaultTreeModel.java:168)
	at javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.expand(VariableHeightLayoutCache.java:1461)
	at javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.expand(VariableHeightLayoutCache.java:1270)
	at javax.swing.tree.VariableHeightLayoutCache.ensurePathIsExpanded(VariableHeightLayoutCache.java:966)
	at javax.swing.tree.VariableHeightLayoutCache.setExpandedState(VariableHeightLayoutCache.java:164)
	at javax.swing.plaf.basic.BasicTreeUI.updateExpandedDescendants(BasicTreeUI.java:1648)
	at javax.swing.plaf.basic.BasicTreeUI$Handler.treeExpanded(BasicTreeUI.java:3721)
	at javax.swing.JTree.fireTreeExpanded(JTree.java:2659)
	at javax.swing.JTree.setExpandedState(JTree.java:3430)
	at javax.swing.JTree.expandPath(JTree.java:2166)
	at javax.swing.plaf.basic.BasicTreeUI.toggleExpandState(BasicTreeUI.java:2209)
	at javax.swing.plaf.basic.BasicTreeUI.handleExpandControlClick(BasicTreeUI.java:2196)
	at javax.swing.plaf.basic.BasicTreeUI.checkForClickInExpandControl(BasicTreeUI.java:2154)
	at javax.swing.plaf.basic.BasicTreeUI$Handler.handleSelection(BasicTreeUI.java:3508)
	at javax.swing.plaf.basic.BasicTreeUI$Handler.mousePressedDND(BasicTreeUI.java:3494)
	at javax.swing.plaf.basic.BasicTreeUI$Handler.mousePressed(BasicTreeUI.java:3453)
	at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:262)
	at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:262)
	at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:262)
	at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:262)
	at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:262)
	at java.awt.Component.processMouseEvent(Component.java:6035)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
	at java.awt.Component.processEvent(Component.java:5803)
	at java.awt.Container.processEvent(Container.java:2058)
	at java.awt.Component.dispatchEventImpl(Component.java:4410)
	at java.awt.Container.dispatchEventImpl(Container.java:2116)
	at java.awt.Component.dispatchEvent(Component.java:4240)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3983)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
	at java.awt.Container.dispatchEventImpl(Container.java:2102)
	at java.awt.Window.dispatchEventImpl(Window.java:2429)
	at java.awt.Component.dispatchEvent(Component.java:4240)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Comment 1 Peter Lam 2007-08-27 19:36:41 UTC
this is a regression.
Comment 2 Thuy.d Nguyen 2007-08-28 22:06:00 UTC
The fix for issue 113792 by lvv also resolves this issue.  Please verify in the latest build.
Comment 3 Joanne Lau 2007-08-28 22:18:56 UTC
Fix verified in build 070828 - b2841