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.
Build: NetBeans IDE Dev (Build 200908022240) VM: Java HotSpot(TM) Client VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01 OS: Windows XP, 5.1, x86 User Comments: GUEST: I created a simple HelloWorld project. Then a UML project from it. Then I added a class to the UML project. The exception happened when I added a method to the class in the diagram editor. GUEST: adding an operation to a class in a UML diagram. Stacktrace: java.lang.AssertionError: bad equals/hashCode in Attributes vs. Attributes at org.openide.nodes.Children$Keys.setKeys(Children.java:1474) at org.openide.nodes.FilterNode$Children$DefaultSupport.updateKeys(FilterNode.java:1691) at org.openide.nodes.FilterNode$Children$DefaultSupport.filterChildrenAdded(FilterNode.java:1661) at org.openide.nodes.FilterNode$Children.filterChildrenAdded(FilterNode.java:1564) at org.openide.nodes.FilterNode$ChildrenAdapter.childrenAdded(FilterNode.java:1948) at org.openide.nodes.Node.fireSubNodesChange(Node.java:1093)
Created attachment 88787 [details] stacktrace
I would like just to add that UML plug-in works perfectly well in NetBeans 6.0 version. So, you can install NetBeans 6.0 beside your current version. ;)
Build: NetBeans IDE Dev (Build nbms-and-javadoc-4005-on-090929) VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33 OS: Windows XP, 5.1, x86 User Comments: just click to "create Depency" line Stacktrace: java.lang.AssertionError: bad equals/hashCode in Operations vs. Operations at org.openide.nodes.Children$Keys.setKeys(Children.java:1474) at org.openide.nodes.FilterNode$Children$DefaultSupport.updateKeys(FilterNode.java:1691) at org.openide.nodes.FilterNode$Children$DefaultSupport.filterChildrenAdded(FilterNode.java:1661) at org.openide.nodes.FilterNode$Children.filterChildrenAdded(FilterNode.java:1564) at org.openide.nodes.FilterNode$ChildrenAdapter.childrenAdded(FilterNode.java:1948) at org.openide.nodes.Node.fireSubNodesChange(Node.java:1093)
Created attachment 89456 [details] stacktrace
Build: NetBeans IDE Dev (Build nbms-and-javadoc-4005-on-090929) VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33 OS: Windows XP, 5.1, x86 User Comments: add contructor in Sequence Diagram; UML-plugin Stacktrace: java.lang.AssertionError: bad equals/hashCode in Operations vs. Operations at org.openide.nodes.Children$Keys.setKeys(Children.java:1474) at org.openide.nodes.FilterNode$Children$DefaultSupport.updateKeys(FilterNode.java:1691) at org.openide.nodes.FilterNode$Children$DefaultSupport.filterChildrenAdded(FilterNode.java:1661) at org.openide.nodes.FilterNode$Children.filterChildrenAdded(FilterNode.java:1564) at org.openide.nodes.FilterNode$ChildrenAdapter.childrenAdded(FilterNode.java:1948) at org.openide.nodes.Node.fireSubNodesChange(Node.java:1093)
Created attachment 89520 [details] stacktrace
Having looked more carefully, it seems the following might be relevant. Some of which may be obvious from the stacktrace for those that know the Netbeans internals a little better, but I'll mention them anyway. The "operation" that I attempted to add when the error occurred WAS created anyway - despite the error. In the explorer window, no arrow was created next to the Class for which I attempted to create the new operation (By "arrow" I mean the thing that you click in order to see the contents of the Class node). Ideally, I would presume that it should instantly create a new "Operations" node below the class object, and that the new operation should be instantly visible (and perhaps even selected) upon completion of its creation.
Looks to be a missing equals/hashcode implementation in UMLChildren. I'll submit the change set when I get home. Sadly the scenario can't be verified in the current code.
remove me from CC List