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

Bug 367171

Summary: Changing generation result
Product: [Modeling] EEF Reporter: William Piers <william.piers>
Component: GeneralAssignee: Bouchet Stéphane <sbouchet>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: sbouchet
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
the fix for control.mtl conditions sbouchet: iplog+

Description William Piers CLA 2011-12-20 06:02:05 EST
A class generated in the non regression test, OwnerPropertiesEditionComponent, changes when regenerating. It appears that the change is not always the same.

It comes from the validFor*** conditions in the referenceTableControl.mtl file : 
the conditions sometimes covers other ones, so Acceleo choose randomly on of the templates which validates the conditions.

Adding parenthesis in the conditions solves the problem (see attached patch).
Comment 1 William Piers CLA 2011-12-20 06:02:44 EST
Created attachment 208601 [details]
the fix for control.mtl conditions
Comment 2 Bouchet Stéphane CLA 2012-01-04 12:09:34 EST
applied on HEAD.