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 112617 - Failing NbPresenterLeakTest
Summary: Failing NbPresenterLeakTest
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Petr Nejedly
URL:
Keywords: TEST
Depends on:
Blocks:
 
Reported: 2007-08-13 09:57 UTC by _ rkubacki
Modified: 2008-12-22 14:26 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 _ rkubacki 2007-08-13 09:57:56 UTC
failing mostly on windows due

testLeakingNbPresenterDescriptor:

      junit.framework.AssertionFailedError: Dialog disappears.:
static java.util.Vector java.awt.Window.allWindows->
java.util.Vector@1d5ee81-elementData->
[Ljava.lang.Object;@110d0b1-[1]->
org.netbeans.core.windows.services.NbDialog@10f559e-componentListener->
javax.swing.BufferStrategyPaintManager$BufferInfo@4b6ad9-this$0->
javax.swing.BufferStrategyPaintManager@4873aa-root->
org.netbeans.core.windows.services.NbDialog@2f3f59-descriptor->
org.openide.WizardDescriptor@16dbfb4
	at junit.framework.Assert.fail(Assert.java:47)
	at org.netbeans.junit.NbTestCase.assertGC(NbTestCase.java:1163)
	at org.netbeans.junit.NbTestCase.assertGC(NbTestCase.java:1112)
	at org.netbeans.core.windows.services.NbPresenterLeakTest.testLeakingNbPresenterDescriptor(NbPresenterLeakTest.java:65)
Comment 1 _ rkubacki 2007-08-28 15:19:37 UTC
Checking in NbPresenterLeakTest.java;
/shared/data/ccvs/repository/core/windows/test/unit/src/org/netbeans/core/windows/services/NbPresenterLeakTest.java,v 
<--  NbPresenterLeakTest.java
new revision: 1.2; previous revision: 1.1

Seems to be specific to jdk version >= 6.0u1.
Comment 2 Petr Nejedly 2007-09-21 22:34:12 UTC
Seems to be fixed according to the comments in the source code and the commit log here.
Comment 4 Petr Nejedly 2007-10-12 17:37:02 UTC
Improved the JDK workaround:
core/windows/test/unit/src/org/netbeans/core/windows/services/NbPresenterLeakTest.java,v1.4