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 34691 - Potential memory leak in DOMConvertor
Summary: Potential memory leak in DOMConvertor
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: All All
: P2 blocker (vote)
Assignee: David Konecny
URL:
Keywords:
Depends on:
Blocks: 31551
  Show dependency tree
 
Reported: 2003-06-30 12:45 UTC by Jan Pokorsky
Modified: 2008-12-22 21:40 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
patch (3.58 KB, patch)
2003-06-30 12:46 UTC, Jan Pokorsky
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Pokorsky 2003-06-30 12:45:45 UTC
In DOMConvertor, there are two static maps holding
cached objects related to a document that is
treated by the convertor. Potential leak may be
caused by using WeakHashMap. I have prepared patch
solving that.

Since xtests for core/settings are broken (openide
separation?) I am not confident to commit it there.
Comment 1 Jan Pokorsky 2003-06-30 12:46:43 UTC
Created attachment 10835 [details]
patch
Comment 2 David Konecny 2003-07-07 13:38:25 UTC
I'm going to look at this.
Comment 3 David Konecny 2003-07-17 12:40:03 UTC
The tests were broken because of missing loaders jar on classpath.
Happen after separation of loaders.

Patch commited:
Checking in src/org/netbeans/spi/settings/DOMConvertor.java
new revision: 1.10; previous revision: 1.9
Thanx.

One test was failing before commit and is still failing
(XMLPropertiesConvertorTest.testModuleDisabling). I have to check it.
Later.
Comment 4 Jan Pokorsky 2003-07-17 16:03:10 UTC
verified