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 173689 - AssertionError: bad equals/hashCode in Attributes vs. Attributes
Summary: AssertionError: bad equals/hashCode in Attributes vs. Attributes
Status: STARTED
Alias: None
Product: uml
Classification: Unclassified
Component: General (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@uml
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-03 16:51 UTC by markojovicic
Modified: 2010-09-20 22:30 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 106258


Attachments
stacktrace (3.52 KB, text/plain)
2009-10-03 16:51 UTC, markojovicic
Details
stacktrace (3.52 KB, text/plain)
2009-10-14 16:12 UTC, b166er
Details
stacktrace (3.52 KB, text/plain)
2009-10-15 12:12 UTC, b166er
Details

Note You need to log in before you can comment on or make changes to this bug.
Description markojovicic 2009-10-03 16:51:09 UTC
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)
Comment 1 markojovicic 2009-10-03 16:51:14 UTC
Created attachment 88787 [details]
stacktrace
Comment 2 markojovicic 2009-10-04 14:14:48 UTC
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. ;)
Comment 3 b166er 2009-10-14 16:12:52 UTC
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)
Comment 4 b166er 2009-10-14 16:12:58 UTC
Created attachment 89456 [details]
stacktrace
Comment 5 b166er 2009-10-15 12:12:11 UTC
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)
Comment 6 b166er 2009-10-15 12:12:16 UTC
Created attachment 89520 [details]
stacktrace
Comment 7 davebastow 2010-09-12 07:11:38 UTC
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.
Comment 8 javydreamercsw 2010-09-13 14:01:18 UTC
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.
Comment 9 b166er 2010-09-20 22:30:47 UTC
remove me from CC List