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

Bug 320102

Summary: Unsynchronized lazy initialization in XXXElementTypes
Product: [Modeling] GMF-Tooling Reporter: Aurelien Pupier <apupier>
Component: CoreAssignee: gmf.generation-inbox <gmf.generation-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3    
Version: 2.3   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
patch for Xpand templates none

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