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 105082

Summary: MouseUtils holds reference to node even after editor is closed
Product: platform Reporter: Shivanand Kini <skini>
Component: Window SystemAssignee: David Simonek <dsimonek>
Status: VERIFIED FIXED    
Severity: blocker CC: issues, mmirilovic
Priority: P2 Keywords: PERFORMANCE
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 105078, 105079    
Attachments: Object path from mouse utils to wsdl editor node

Description Shivanand Kini 2007-05-29 23:51:07 UTC
Attached is the profiler object path.


Install enterprise pack.
Create a new bpel module
Create a new WSDL file.
select a node in the tree view.
Close the editor.

Do a memory profile here. 

You will see that the mouseutils still has a reference to the node, which doesnt
allow the node to be garbage collected.
Comment 1 Shivanand Kini 2007-05-29 23:52:41 UTC
Created attachment 42926 [details]
Object path from mouse utils to wsdl editor node
Comment 2 Petr Nejedly 2007-05-30 13:23:34 UTC
*** Issue 100755 has been marked as a duplicate of this issue. ***
Comment 3 David Simonek 2007-05-30 14:57:21 UTC
fixed in main trunk, simply use WeakReference.

Checking in MouseUtils.java;
/cvs/openide/awt/src/org/openide/awt/MouseUtils.java,v  <--  MouseUtils.java
new revision: 1.3; previous revision: 1.2
Comment 4 Quy Nguyen 2007-06-12 23:15:24 UTC
Verified on 070612.