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 57769 - Children.Keys can create more nodes than needed
Summary: Children.Keys can create more nodes than needed
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Nodes (show other bugs)
Version: 4.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
: 58370 59291 60093 60182 61467 62468 62522 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-04-12 13:43 UTC by Petr Nejedly
Modified: 2008-12-22 21:00 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Nejedly 2005-04-12 13:43:45 UTC
Calling getNodes() from more concurrent threads on a Children.Keys subclass
can lead to creation of more nodes per each key.
Comment 1 Petr Nejedly 2005-05-05 16:09:53 UTC
*** Issue 58370 has been marked as a duplicate of this issue. ***
Comment 2 Petr Nejedly 2005-05-05 16:11:15 UTC
Increasing priority. See e.g. issue 58370.
Comment 3 Petr Nejedly 2005-07-01 14:11:11 UTC
*** Issue 60182 has been marked as a duplicate of this issue. ***
Comment 4 Petr Nejedly 2005-07-25 10:53:36 UTC
*** Issue 60093 has been marked as a duplicate of this issue. ***
Comment 5 Petr Nejedly 2005-08-10 12:58:54 UTC
*** Issue 61467 has been marked as a duplicate of this issue. ***
Comment 6 Petr Nejedly 2005-08-11 14:27:27 UTC
Added a failing test:
openide/nodes/test/unit/src/org/openide/nodes/ChildrenKeysTest.java,v1.2

Reassigning to Yarda, he aggreed to look at it once there is a test.
Comment 7 Jaroslav Tulach 2005-08-11 20:30:46 UTC
I'll work on the issue for 4.2, but not now, I have other things to do for 
next few weeks. 
Comment 8 Petr Nejedly 2005-08-17 11:41:09 UTC
*** Issue 62468 has been marked as a duplicate of this issue. ***
Comment 9 Petr Nejedly 2005-08-23 09:28:12 UTC
*** Issue 62522 has been marked as a duplicate of this issue. ***
Comment 10 Petr Nejedly 2005-09-19 10:55:25 UTC
*** Issue 59291 has been marked as a duplicate of this issue. ***
Comment 11 Jaroslav Tulach 2005-09-20 12:02:54 UTC
This fix is not going to be deadlock proof. We can expect few of them in  
future, but as there is nothing much better to do, let's try this:  
  
"#57769: Call to createNodes is synchronized so it is done just once per each 
entry" 
 
 
 
Checking in nodes/src/org/openide/nodes/ChildrenArray.java; 
/cvs/openide/nodes/src/org/openide/nodes/ChildrenArray.java,v  <--  
ChildrenArray.java 
new revision: 1.2; previous revision: 1.1 
done 
Checking in nodes/test/cfg-unit.xml; 
/cvs/openide/nodes/test/cfg-unit.xml,v  <--  cfg-unit.xml 
new revision: 1.2; previous revision: 1.1 
done 
Checking in nodes/test/unit/src/org/openide/nodes/ChildrenKeysTest.java; 
/cvs/openide/nodes/test/unit/src/org/openide/nodes/ChildrenKeysTest.java,v  
<--  ChildrenKeysTest.java 
new revision: 1.3; previous revision: 1.2