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 13602

Summary: MemoryLeak in CookieAction$CookiesChangeListener
Product: platform Reporter: anovak <anovak>
Component: ActionsAssignee: rmatous <rmatous>
Status: CLOSED FIXED    
Severity: blocker Keywords: PERFORMANCE
Priority: P2    
Version: 3.x   
Hardware: Sun   
OS: SunOS   
Issue Type: DEFECT Exception Reporter:

Description anovak 2001-07-13 15:00:00 UTC
The CookiesChangeListener has the "nodes" variable which strongly references
Nodes. The array is updated from time to time. It contains for instance a
refernce to a JavaNode, which in turn references a JavaDataObject. If you,
however, delete the JavaDataObject, it is not gced from memory because there is
the reference from the nodes array.
Comment 1 rmatous 2001-07-16 14:10:47 UTC
Fixed in main trunk. CookieAction$CookiesChangeListener holds nodes 
as List of WeakReferences instead of array of strong references.
Comment 2 Jan Zajicek 2001-07-24 12:01:11 UTC
rev 1.16
Comment 3 Quality Engineering 2003-07-01 16:14:14 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.