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

Bug 361652

Summary: [JFace] FieldDecorationRegistry#getDefault should have session scope
Product: [RT] RAP Reporter: RĂ¼diger Herrmann <ruediger.herrmann>
Component: JFaceAssignee: Project Inbox <rap-inbox>
Status: ASSIGNED --- QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description RĂ¼diger Herrmann CLA 2011-10-21 09:56:07 EDT
The default FieldDecorationRegistry currently has application scope that can be set and obtained with get/setDefault(). It is stored in a static field. This will likely cause memory leaks as the managed FieldDecorationRegistry have session scope. 
Furthermore, access is unsynhronized and id's from different sessions may override each other inadvertently.

The default FieldDecorationRegistry should be stored in session scope.