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 125078

Summary: memory leak in DesignTimeContext
Product: obsolete Reporter: Quy Nguyen <quynguyen>
Component: visualwebAssignee: John Baker <jbaker>
Status: RESOLVED FIXED    
Severity: blocker Keywords: PERFORMANCE
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 123530    

Description Quy Nguyen 2008-01-11 01:36:57 UTC
The org.netbeans.modules.visualweb.dataconnectivity.naming.DesignTimeContext has a strong reference to a WebProject
object, even after that project is closed.  This should probably use a WeakReference.
Comment 1 John Baker 2008-01-14 01:53:15 UTC
Fix available, but risky.  Needs more testing
Comment 2 John Baker 2008-01-14 02:16:18 UTC
I sent an nbm to QE for testing
Comment 3 John Baker 2008-01-15 05:47:45 UTC
Fixed by using a WeakReference to project

Checking in visualweb/dataconnectivity/src/org/netbeans/modules/visualweb/dataconnectivity/naming/DesignTimeContext.java;
/cvs/visualweb/dataconnectivity/src/org/netbeans/modules/visualweb/dataconnectivity/naming/DesignTimeContext.java,v  <--
 DesignTimeContext.java
new revision: 1.16; previous revision: 1.15
done