Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 328666 - Memory leak in MetaDataLocatorFactory
Summary: Memory leak in MetaDataLocatorFactory
Status: RESOLVED FIXED
Alias: None
Product: Java Server Faces
Classification: WebTools
Component: JSF Tools (show other bugs)
Version: 3.2.2   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: 3.2.3   Edit
Assignee: Carlin Rogers CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-25 18:58 EDT by Carlin Rogers CLA
Modified: 2010-10-25 19:41 EDT (History)
0 users

See Also:


Attachments
add MetaDataLocatorFactory as a listener for project delete events (1.04 KB, patch)
2010-10-25 19:02 EDT, Carlin Rogers CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Carlin Rogers CLA 2010-10-25 18:58:32 EDT
The MetaDataLocatorFactory does not remove locators when a project is deleted from the workspace. The class implements IResourceChangeListener and has code to support removing the locators but is not configured to listen for the delete event, only the project close.

It is a simple fix to modify the call to the workspace addResourceChangeListener() method and add the flag to listen for project delete events.
Comment 1 Carlin Rogers CLA 2010-10-25 19:02:06 EDT
Created attachment 181686 [details]
add MetaDataLocatorFactory as a listener for project delete events

Will test this patch and then commit.
Comment 2 Carlin Rogers CLA 2010-10-25 19:41:59 EDT
committed patch to HEAD.