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 11030 - initCollection no longer being called on first access to Children.Array
Summary: initCollection no longer being called on first access to Children.Array
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC Other
: P1 blocker (vote)
Assignee: issues@platform
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-04-04 12:50 UTC by Joseph Cortopassi
Modified: 2008-12-22 23:50 UTC (History)
0 users

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 Joseph Cortopassi 2001-04-04 12:50:03 UTC
In yesterday's build the EJB node stopped expanding. After looking into this we 
found that our initCollection was not being called on our subclass of 
Children.Array. I built a simpler test than the EJB Children.Array and found 
that initCollection is not being called on the first attempt to expand the 
children. From stack traces I put in it seems the initCollection is only being 
called when an add is done to the Children. In our case, we want to return a 
static collection on nodes in initCollection, so we never call add.

The changes that seem to cause this are version 1.85.2.2 in release32 (or 1.87) 
in the trunk.
Comment 1 David Strupl 2001-04-04 15:25:28 UTC
Joe - could you please try version 1.89? I didn't check the reason for your
nodes stopping expanding but just to make sure that the problem persists after
today's changes in the Children.java. Thanks.
Comment 2 Joseph Cortopassi 2001-04-04 16:03:59 UTC
I tried it with the newer version of Children.java and the problem still 
persists.

I really believe the problem is in the change to Children.Array.AE.nodes 
that returns an empty list. 

It looks like in the case where the Children.Array subclass
wants to return all its nodes in the initCollection call rather than through
calls to add, initCollection will never be called. If I put a call to 
getCollection in Children.Array.AE.nodes, then the problem goes away.
Comment 3 Jaroslav Tulach 2001-04-05 17:15:37 UTC
Children.Array.AE.nodes changed to always call getCollection.
Comment 4 Jan Chalupa 2001-05-06 08:20:12 UTC
Target milestone -> 3.2
Comment 5 Quality Engineering 2003-07-01 15:56:58 UTC
Resolved for 3.4.x or earlier, no new info since then -> verified
Comment 6 Quality Engineering 2003-07-01 16:31:52 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.