Community
Participate
Working Groups
Eclipse 3.3 does not always do the right thing when creating Topics from other Topics or ITopics. This bug describes three separate problems: 1. If a child is removed from a Topic after it has been used in the constructor for another Topic an exception is thrown: org.w3c.dom.DOMException: NOT_FOUND_ERR: An attempt is made to reference a node in a context where it does not exist. at org.apache.xerces.dom.ParentNode.internalRemoveChild(Unknown Source) While the exception could easily be caught and ignored a better fix would be to keep the child nodes in synch with the parent nodes. See JUnit test testCopyTopicWithChildRemoveChild() which I will attach. 2. If a Topic with a child is used in the constructor for another Topic both the old and new Topic will think they own the same child(). This means that calling getParent() for a child topic will not always return the original topic. I think that this is potentially dangerous. See JUnit test testCopyTopicWithChildCheckParents() 3. If a Topic 't' is constructed from an ITopic and that ITopic has a child the child topic of 't' will always be enabled, regardless of the enablement status of he original child. I believe that this would mean that code which used the API to create a TOC would not have child topics filtered as expected. See JUnit test testUserTopicWithFilteredChildren
Created attachment 82999 [details] JUnit tests This file contains the 3 JUnit tests mentioned and others. Until these are fixed I will leave these commented out in the HEAD version of the test.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug. If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.