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 168181 - testGCDocuments test failed
Summary: testGCDocuments test failed
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jaroslav Tulach
URL: http://ruhudson4qe.russia.sun.com/vie...
Keywords: TEST
Depends on:
Blocks:
 
Reported: 2009-07-06 16:04 UTC by Ivan Sidorkin
Modified: 2009-07-12 05:33 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 Ivan Sidorkin 2009-07-06 16:04:27 UTC
Are all documents GCed? TextDocument: private static final java.util.Map org.openide.awt.GlobalManager.CACHE->
java.util.IdentityHashMap@3efe7e-table-> [Ljava.lang.Object;@1ebae42-[40]->
org.openide.windows.DefaultTopComponentLookup@f8a54-tc->
org.netbeans.modules.java.JavaDataObject$JavaEditor@151a932-doInitialize->
org.openide.text.CloneableEditor$DoInitialize@7d7c82-doc-> org.netbeans.modules.editor.NbEditorDocument@7f7e41
Comment 1 mslama 2009-07-08 11:47:36 UTC
Passing to Jarda. After discussion with Jarda it looks like org.openide.windows.DefaultTopComponentLookup should have
weak reference to TC instance.
Comment 2 Jaroslav Tulach 2009-07-09 18:27:34 UTC
ergonomics#a188c9e42040
Comment 3 Quality Engineering 2009-07-10 17:34:21 UTC
Integrated into 'main-golden', will be available in build *200907101400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/a188c9e42040
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #168181: Lookup of TopComponent needs WeakReference to the component only
Comment 4 Quality Engineering 2009-07-11 17:34:22 UTC
Integrated into 'main-golden', will be available in build *200907111400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/8fb5204d884a
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #168181: The key in the map cannot be Lookup itself, it needs to be a reference to it. Additional improvement to #168181.
Comment 5 Quality Engineering 2009-07-12 05:33:54 UTC
Integrated into 'main-golden', will be available in build *200907120200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/8fb5204d884a
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #168181: The key in the map cannot be Lookup itself, it needs to be a reference to it. Additional improvement to #168181.