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.
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.
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.
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.
Children.Array.AE.nodes changed to always call getCollection.
Target milestone -> 3.2
Resolved for 3.4.x or earlier, no new info since then -> verified
Resolved for 3.4.x or earlier, no new info since then -> closing.