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 241496 - Failing org.openide.nodes.ChildFactoryTest.testBatchNodeRecreation
Summary: Failing org.openide.nodes.ChildFactoryTest.testBatchNodeRecreation
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Nodes (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Jan Peska
URL:
Keywords: JDK_8, TEST
Depends on:
Blocks:
 
Reported: 2014-02-06 14:46 UTC by Jiri Skrivanek
Modified: 2014-02-19 14:06 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 Jiri Skrivanek 2014-02-06 14:46:13 UTC
Please, fix failing org.openide.nodes.ChildFactoryTest.testBatchNodeRecreation.

http://test4u.cz.oracle.com/job/StableBTD-trunk/lastCompletedBuild/testReport/
Comment 1 Jiri Skrivanek 2014-02-12 09:13:47 UTC
To reproduce:

ant -f openide.nodes test-unit -Dtest.includes=**/ChildFactoryTest.class -Dtest-unit-sys-prop.NbTestCase.order=a-z
Comment 2 Jiri Skrivanek 2014-02-13 14:27:14 UTC
The failure reveals with mentioned order property and when you debug testBatchNodeRecreation test case. It seems that on JDK8 ChildrenArray is finalized too eagerly and nodes have to be re-created. The following is called before f.refresh():

"Active Reference Queue Daemon"
org.openide.nodes.AsynchChildren.removeNotify(AsynchChildren.java:94)
org.openide.nodes.Children.callRemoveNotify(Children.java:580)
org.openide.nodes.EntrySupportDefault.finalizedChildrenArray(EntrySupportDefault.java:775)
org.openide.nodes.EntrySupportDefault$ChArrRef.run(EntrySupportDefault.java:867)
org.openide.util.lookup.implspi.ActiveQueue$Daemon.run(ActiveQueue.java:189)
Comment 3 Jan Peska 2014-02-17 14:26:20 UTC
fix: http://hg.netbeans.org/core-main/rev/71af3f86c4ce
Comment 4 Quality Engineering 2014-02-19 02:47:02 UTC
Integrated into 'main-silver', will be available in build *201402190001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/71af3f86c4ce
User: Jan Peska <JPESKA@netbeans.org>
Log: Issue #241496 - Failing org.openide.nodes.ChildFactoryTest.testBatchNodeRecreation
Fixing patch - must keep reference to nodes