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.
Summary: | getSelectedObjects returns modifiable set | ||
---|---|---|---|
Product: | platform | Reporter: | Joelle Lam <joellelam> |
Component: | Graph | Assignee: | issues@platform <issues> |
Status: | NEW --- | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 3.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | image of drop down behind new watch dialog |
Description
Joelle Lam
2007-04-05 16:21:57 UTC
I think the implementation is ok because performance reason. During "setSelectedObjects" method call you would have to create a copy of the set - current algorithm creates a copy of the set only for purpose of firing SELECTION_CHANGED events to ObjectSceneListener. The best would be to use CopyOnWriteHashSet (but it does not exist). I would rather recomend you to create a copy of the set while you modifying the ObjectScene structures. I am closing the issue as WONTFIX. Feel free to reopen it if you disagree. Reopening the issue. This behaviour has to be documented in documentation.html and javadoc for all getter methods. Created attachment 51797 [details]
image of drop down behind new watch dialog
oops added to wrong bug. ignore that last attachment |