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 43012

Summary: CSS DataObject leaks
Product: xml Reporter: _ pkuzel <pkuzel>
Component: CSSAssignee: Petr Pisl <ppisl>
Status: VERIFIED FIXED    
Severity: blocker CC: issues
Priority: P2 Keywords: PERFORMANCE
Version: 3.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 19484    

Description _ pkuzel 2004-05-10 15:44:10 UTC
See strong listeners attached in contructor:

    public CSSObject(final FileObject obj,final
UniFileLoader loader) throws
DataObjectExistsException {
        super (obj, loader);
        
        CookieSet set = getCookieSet();

        // TOO EARLY and may be leak
        set.add (new
CSSEditorSupport(getPrimaryEntry()));

        // LEAK!!!
        getPrimaryFile().addFileChangeListener
(new FileListener ());
    }

It's exposed by iteration over datasystems, such
as in search.
Comment 2 dmladek 2004-09-07 10:30:51 UTC
Looking into the code, Peter is using
FileUtil.weakFileChangeListener() now, so seems like it's been fixed