Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 360514 - EMF adapters leak on EPackages
Summary: EMF adapters leak on EPackages
Status: CLOSED FIXED
Alias: None
Product: EMF
Classification: Modeling
Component: cdo.core (show other bugs)
Version: 4.1   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Eike Stepper CLA
QA Contact: Eike Stepper CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-11 04:34 EDT by Eike Stepper CLA
Modified: 2012-09-21 07:17 EDT (History)
0 users

See Also:


Attachments
Patch v1 (2.01 KB, patch)
2011-10-11 05:02 EDT, Eike Stepper CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eike Stepper CLA 2011-10-11 04:34:05 EDT
Two different bugs cause lots of CDOPackageInfo instances (adapters) staying attached to generated EPackages:

a) CDONet4jSessionImpl.doActivate() attaches duplicate adapters to system packages (Ecore, Eresource).
b) CDONet4jSessionImpl.doDeactivate() does not deactivate packageRegistry, branchManager and revisionManager
Comment 1 Eike Stepper CLA 2011-10-11 05:02:52 EDT
Created attachment 204932 [details]
Patch v1
Comment 2 Eike Stepper CLA 2011-10-11 05:03:40 EDT
Committed revision 9472:
- trunk/plugins/org.eclipse.emf.cdo.net4j
Comment 3 Eike Stepper CLA 2011-10-11 05:03:56 EDT
Fixed.

Backport via bug 360518.
Comment 4 Eike Stepper CLA 2012-09-21 07:17:01 EDT
Closing.