Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 529014

Summary: Scoped instances are never removed from AdaptableScope
Product: [Tools] GEF Reporter: Markus Muehlbrandt <markus.muehlbrandt>
Component: GEF CommonAssignee: gef-inbox <gef-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: nyssen
Version: 5.0.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows 10   
Whiteboard:

Description Markus Muehlbrandt CLA 2017-12-20 08:13:41 EST
The AdapatableScope class contains a static map to cache adaptable scoped instances. The adapatable instances are never removed from the map.

A possible solution is to remove the instance from the AdaptableScope::scopedInstances map within the AdaptableScope::leave(A instance) method.
Comment 1 Alexander Nyßen CLA 2018-01-02 04:24:18 EST
Resolving this as duplicate of #506379. The proposed fix (removing scoped instances when leaving the scope) is not appropriate, as e.g. the handle part injection will take place at a later point in time (and not during initial creation), where the scopes will be re-entered (and instances would not be scoped).

*** This bug has been marked as a duplicate of bug 506379 ***