Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 334084 - Compilation issue in name expression of a file block
Summary: Compilation issue in name expression of a file block
Status: CLOSED WORKSFORME
Alias: None
Product: Acceleo
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows Vista
: P3 normal
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-12 08:10 EST by Gonzague Reydet CLA
Modified: 2011-02-28 10:00 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.