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

Bug 334084

Summary: Compilation issue in name expression of a file block
Product: [Modeling] Acceleo Reporter: Gonzague Reydet <gonzague.reydet>
Component: CoreAssignee: Project Inbox <acceleo-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: stephane.begaudeau
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

Description Gonzague Reydet CLA 2011-01-12 08:10:38 EST
Build Identifier: 3.0.1

The following Acceleo snippet does not compile on a mtl module file on the UML metamodel.

[template public Generate_interface(i : Interface)]
	[file (i.name.concat('.txt'), false, 'UTF-8')]
	[/file]
[/template]

The compilation error is "Unrecognized variable: (name)" on the file line.
Replacing i by self or removing it fixes this issue.

Reproducible: Always
Comment 1 Stephane Begaudeau CLA 2011-02-28 10:00:06 EST
Works for me in Acceleo 3.1.0 M6.