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 146393 - Select in Model on container contained object throws AssertionError
Summary: Select in Model on container contained object throws AssertionError
Status: VERIFIED WORKSFORME
Alias: None
Product: uml
Classification: Unclassified
Component: General Diagram (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@uml
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2008-09-06 08:47 UTC by Peter Lam
Modified: 2008-09-09 06:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
ide log file (41.53 KB, text/plain)
2008-09-06 08:48 UTC, Peter Lam
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Lam 2008-09-06 08:47:48 UTC
build 20080905. this is a regression since it's not happening in previous builds.

Select in Model on the following objects popped up the following exception. see attached log for complete exception.
- element contained in composite state region
- events and tranitions from simple and submachine states
- use case extension points

java.lang.AssertionError: bad equals/hashCode in Dependency vs. Dependency
	at org.openide.nodes.Children$Keys.setKeys(Children.java:1436)
	at org.openide.nodes.FilterNode$Children$DefaultSupport.updateKeys(FilterNode.java:1565)
	at org.openide.nodes.FilterNode$Children$DefaultSupport.update(FilterNode.java:1558)
	at org.openide.nodes.FilterNode$Children.addNotifyImpl(FilterNode.java:1368)
	at org.openide.nodes.FilterNode$Children.addNotify(FilterNode.java:1361)
	...
Comment 1 Peter Lam 2008-09-06 08:48:35 UTC
Created attachment 69213 [details]
ide log file
Comment 2 Yang Su 2008-09-09 01:04:39 UTC
Can't reproduce it in 9/8 build. For those elements that do not show up in project tree 'Select in Model' does nothing,
there is no exception in log, but perhaps we should not provide this menu item. For contained elements in composite
state region, 'Select in Model' selects the node in tree and highlights it, this case seems to be fine.
Comment 3 Peter Lam 2008-09-09 06:43:41 UTC
verified in build 20080908. No longer reproducible in this new build.
Yes, agree that the menu option "Select in Model" should not be enabled for object that do not show up in project tree.
Will file an issue to track this.
Comment 4 Peter Lam 2008-09-09 06:44:04 UTC
verified in build 20080908