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 104552 - memory leak in CurrentProject.project field
Summary: memory leak in CurrentProject.project field
Status: VERIFIED 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:
Depends on:
Blocks: 105078
  Show dependency tree
 
Reported: 2007-05-22 21:53 UTC by Quy Nguyen
Modified: 2007-10-10 17:36 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 2007-05-22 21:53:01 UTC
org.netbeans.modules.visualweb.dataconnectivity.datasource.CurrentProject.project
contains a static reference to a WebProject object.  This should probably use a
WeakReference to avoid causing a memory leak once the current project is closed.
Comment 1 John Baker 2007-05-23 14:55:24 UTC
fix available, currently testing
Comment 2 John Baker 2007-05-23 22:17:27 UTC
Removed static reference and also used weak references for the listener
Comment 3 John Baker 2007-05-23 22:55:20 UTC
diffs for changes (click Expand all)
http://deadlock.nbextras.org/fisheye/changelog/~author=jbaker/netbeans/?cs=MAIN:jbaker:20070523210030
Comment 4 John Baker 2007-06-02 00:47:41 UTC
may not have time to fix for M10
Comment 5 John Baker 2007-06-27 07:36:27 UTC
Fixed 

$ cvs commit visualweb/dataconnectivity/src/org/netbeans/modules/visualweb/dataconnectivity/datasource/CurrentProject.java
Checking in visualweb/dataconnectivity/src/org/netbeans/modules/visualweb/dataconnectivity/datasource/CurrentProject.java;
/cvs/visualweb/dataconnectivity/src/org/netbeans/modules/visualweb/dataconnectivity/datasource/CurrentProject.java,v 
<--  CurrentProject.java
new revision: 1.11; previous revision: 1.10
Comment 6 _ alexpetrov 2007-10-10 17:36:36 UTC
Verified.
Product Version: NetBeans IDE Dev (Build 200710100000)
Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b02
System: Windows XP version 5.1 running on x86