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 255645 - BeanTreeViewTest.testChildDestroyedMoreInSelection() and BeanTreeViewTest.testOnlyChildDestroyedCausesSelectionOfParent() fails
Summary: BeanTreeViewTest.testChildDestroyedMoreInSelection() and BeanTreeViewTest.tes...
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Explorer (show other bugs)
Version: 8.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Martin Entlicher
URL: http://deadlock.netbeans.org/job/NB-C...
Keywords: TEST
Depends on:
Blocks:
 
Reported: 2015-10-01 15:35 UTC by Martin Entlicher
Modified: 2015-10-03 03:00 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 Martin Entlicher 2015-10-01 15:35:13 UTC
org.openide.explorer.view.BeanTreeViewTest.testChildDestroyedMoreInSelection

Error Message

Node should be released.:
private static java.lang.Object org.openide.explorer.view.BeanTreeViewTest.holder->
org.openide.explorer.view.BeanTreeViewTest$2AWTTst@6b2c665-p->
org.openide.explorer.view.BeanTreeViewTest$Panel@38185ba-em->
org.openide.explorer.ExplorerManager@25f98464-listener->
org.openide.explorer.ExplorerManager$Listener@416848e8-removeList->
java.util.HashSet@5c532596-map->
java.util.HashMap@3744a82d-table->
[Ljava.util.HashMap$Entry;@3943e3c4-[2]->
java.util.HashMap$Entry@54f77e7e-key->
org.openide.nodes.AbstractNode@7f29385a

Stacktrace

junit.framework.AssertionFailedError: Node should be released.:
private static java.lang.Object org.openide.explorer.view.BeanTreeViewTest.holder->
org.openide.explorer.view.BeanTreeViewTest$2AWTTst@6b2c665-p->
org.openide.explorer.view.BeanTreeViewTest$Panel@38185ba-em->
org.openide.explorer.ExplorerManager@25f98464-listener->
org.openide.explorer.ExplorerManager$Listener@416848e8-removeList->
java.util.HashSet@5c532596-map->
java.util.HashMap@3744a82d-table->
[Ljava.util.HashMap$Entry;@3943e3c4-[2]->
java.util.HashMap$Entry@54f77e7e-key->
org.openide.nodes.AbstractNode@7f29385a
	at org.netbeans.junit.NbTestCase$4.run(NbTestCase.java:1470)
	at org.netbeans.junit.internal.NbModuleLogHandler.whileIgnoringOOME(NbModuleLogHandler.java:170)
	at org.netbeans.junit.NbTestCase.assertGC(NbTestCase.java:1428)
	at org.netbeans.junit.NbTestCase.assertGC(NbTestCase.java:1404)
	at org.openide.explorer.view.BeanTreeViewTest$2AWTTst.tryGc(BeanTreeViewTest.java:319)
	at org.openide.explorer.view.BeanTreeViewTest.doChildDestroyTest(BeanTreeViewTest.java:329)
	at org.openide.explorer.view.BeanTreeViewTest.testChildDestroyedMoreInSelection(BeanTreeViewTest.java:199)
	at org.netbeans.junit.NbTestCase.access$200(NbTestCase.java:102)
	at org.netbeans.junit.NbTestCase$2.doSomething(NbTestCase.java:478)
	at org.netbeans.junit.NbTestCase$1Guard.run(NbTestCase.java:404)
	at java.lang.Thread.run(Thread.java:744)


org.openide.explorer.view.BeanTreeViewTest.testOnlyChildDestroyedCausesSelectionOfParent

Error Message

Node should be released.:
private static java.lang.Object org.openide.explorer.view.BeanTreeViewTest.holder->
org.openide.explorer.view.BeanTreeViewTest$2AWTTst@134a68cc-p->
org.openide.explorer.view.BeanTreeViewTest$Panel@ebea716-em->
org.openide.explorer.ExplorerManager@4499a52c-listener->
org.openide.explorer.ExplorerManager$Listener@36f05557-removeList->
java.util.HashSet@44a6500d-map->
java.util.HashMap@65527cfc-table->
[Ljava.util.HashMap$Entry;@3fa796ff-[8]->
java.util.HashMap$Entry@12bfd2da-key->
org.openide.nodes.AbstractNode@24de264a

Stacktrace

junit.framework.AssertionFailedError: Node should be released.:
private static java.lang.Object org.openide.explorer.view.BeanTreeViewTest.holder->
org.openide.explorer.view.BeanTreeViewTest$2AWTTst@134a68cc-p->
org.openide.explorer.view.BeanTreeViewTest$Panel@ebea716-em->
org.openide.explorer.ExplorerManager@4499a52c-listener->
org.openide.explorer.ExplorerManager$Listener@36f05557-removeList->
java.util.HashSet@44a6500d-map->
java.util.HashMap@65527cfc-table->
[Ljava.util.HashMap$Entry;@3fa796ff-[8]->
java.util.HashMap$Entry@12bfd2da-key->
org.openide.nodes.AbstractNode@24de264a
	at org.netbeans.junit.NbTestCase$4.run(NbTestCase.java:1470)
	at org.netbeans.junit.internal.NbModuleLogHandler.whileIgnoringOOME(NbModuleLogHandler.java:170)
	at org.netbeans.junit.NbTestCase.assertGC(NbTestCase.java:1428)
	at org.netbeans.junit.NbTestCase.assertGC(NbTestCase.java:1404)
	at org.openide.explorer.view.BeanTreeViewTest$2AWTTst.tryGc(BeanTreeViewTest.java:319)
	at org.openide.explorer.view.BeanTreeViewTest.doChildDestroyTest(BeanTreeViewTest.java:329)
	at org.openide.explorer.view.BeanTreeViewTest.testOnlyChildDestroyedCausesSelectionOfParent(BeanTreeViewTest.java:190)
	at org.netbeans.junit.NbTestCase.access$200(NbTestCase.java:102)
	at org.netbeans.junit.NbTestCase$2.doSomething(NbTestCase.java:478)
	at org.netbeans.junit.NbTestCase$1Guard.run(NbTestCase.java:404)
	at java.lang.Thread.run(Thread.java:744)
Comment 1 Martin Entlicher 2015-10-01 15:38:20 UTC
It looks like ExplorerManager$Listener was scheduled into RP, but was not processed yet...
Comment 2 Martin Entlicher 2015-10-02 08:26:32 UTC
Should be fixed by changeset:   292828:25568e635ba9
http://hg.netbeans.org/core-main/rev/25568e635ba9
Comment 3 Martin Entlicher 2015-10-02 08:34:32 UTC
As the fix is very ugly, I've submitted issue #255652.
Comment 4 Quality Engineering 2015-10-03 03:00:16 UTC
Integrated into 'main-silver', will be available in build *201510030002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/25568e635ba9
User: mentlicher@netbeans.org
Log: #255645: Wait for the listener removal task.