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 164397 - Children.create(ChildFactory,true) -> NodeOp.findPath unreliable
Summary: Children.create(ChildFactory,true) -> NodeOp.findPath unreliable
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Nodes (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: t_h
URL:
Keywords: THREAD
Depends on: 165223
Blocks:
  Show dependency tree
 
Reported: 2009-05-04 15:56 UTC by Jesse Glick
Modified: 2009-05-14 23:43 UTC (History)
1 user (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 Jesse Glick 2009-05-04 15:56:36 UTC
If you create a Children object using an asynch ChildFactory, you would expect that Children.findChild (and thus also
NodeOp.findPath) would wait for children to be created if necessary. But this does not work; the child is not found
unless you happen to have expanded the children already.

AsynchChildren does implement getNodes(true); I suspect the problem is Children.findChild, which calls
getNodes(/*false*/). Probably it should call getNodes(true), at least if list.length == 0 or there are no matches found
after gN(false).
Comment 1 Jesse Glick 2009-05-04 15:57:01 UTC
Affects selection of subnodes of Hudson Builders in the Services tab.
Comment 2 Quality Engineering 2009-05-05 07:52:18 UTC
Integrated into 'main-golden', will be available in build *200905050201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/63ed7dc4f323
User: Jesse Glick <jglick@netbeans.org>
Log: Try to select closest node if a child cannot be found. Partial workaround for #164397.
Comment 3 t_h 2009-05-05 16:13:35 UTC
core-main #6b8ec9189453
Comment 4 Jesse Glick 2009-05-05 17:36:07 UTC
Seems to be working as expected with Hudson.
Comment 5 Quality Engineering 2009-05-07 07:55:18 UTC
Integrated into 'main-golden', will be available in build *200905070201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/6b8ec9189453
User: Tomas Holy <t_h@netbeans.org>
Log: #164397: Children.create(ChildFactory,true) -> NodeOp.findPath unreliable