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 - memory leak in DesignTimeContext
Summary: memory leak in DesignTimeContext
Status: RESOLVED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: John Baker
URL:
Keywords: PERFORMANCE
Depends on:
Blocks: 123530
  Show dependency tree
 
Reported: 2008-01-11 01:36 UTC by Quy Nguyen
Modified: 2008-01-15 05:47 UTC (History)
0 users

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 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