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 104333

Summary: JsfJspDataNode causes memory leak in JsfProjectUtils
Product: obsolete Reporter: Quy Nguyen <quynguyen>
Component: visualwebAssignee: Quy Nguyen <quynguyen>
Status: RESOLVED FIXED    
Severity: blocker Keywords: PERFORMANCE
Priority: P1    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 104329    
Bug Blocks:    

Description Quy Nguyen 2007-05-18 23:57:32 UTC
The constructor for JsfJspDataNode calls
jsfProjectUtils.JsfProjectUtils.addProjectPropertyListener(), but no
corresponding removeProjectPropertyListener() call is made when the page or
project are closed due to the node's destroy() method not being invoked.

This causes a memory leak that is proportional to the number of vw pages created
in the IDE.
Comment 1 Quy Nguyen 2007-05-29 23:25:30 UTC
Since JsfProjectUtils changed to a WeakHashMap implementation for the listener
set, this should no longer be an issue.