Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 320102 - Unsynchronized lazy initialization in XXXElementTypes
Summary: Unsynchronized lazy initialization in XXXElementTypes
Status: NEW
Alias: None
Product: GMF-Tooling
Classification: Modeling
Component: Core (show other bugs)
Version: 2.3   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: gmf.generation-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-16 08:58 EDT by Aurelien Pupier CLA
Modified: 2010-07-19 22:19 EDT (History)
0 users

See Also:


Attachments
patch for Xpand templates (2.55 KB, patch)
2010-07-16 09:00 EDT, Aurelien Pupier CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Aurelien Pupier CLA 2010-07-16 08:58:00 EDT
Build Identifier: 20100617-1415

Using Findbugs, it emphasizes a possible issue in multithreaded environment in XXXElementTypes.getElements(IAdaptable hint) and XXElementTypes.isKnownElementType(IElementType elementType).
Findbugs warns this as High Priority->Multithreaded correctness->Unsynchronized Lazy Initialization-> Incorrect Lazy Initialization and update of static field.


Reproducible: Always
Comment 1 Aurelien Pupier CLA 2010-07-16 09:00:12 EDT
Created attachment 174489 [details]
patch for Xpand templates

The patch concerns the xpand templates. I don't know if there is another thing to modify.

(I tested using aspect templates and defining new "expand" in additions)
Comment 2 Eclipse Webmaster CLA 2010-07-19 22:19:52 EDT
[GMF Restructure] Bug 319140 : product GMF and component
Generation was the original product and component for this bug