Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 317948 - Problems with templates with more than 2 parameters.
Summary: Problems with templates with more than 2 parameters.
Status: CLOSED DUPLICATE of bug 320474
Alias: None
Product: Acceleo
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-25 06:54 EDT by Daniel CLA
Modified: 2010-09-13 10:00 EDT (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 Daniel CLA 2010-06-25 06:54:07 EDT
When migrating a sentence from Acceleo 2 to Acceleo 3 with more than 1 parameter using the mt2mtl module it generates headers such as:

[template public packagePath(element : Element, args0 : String) post(trim())]

Which are correct, but them, when migrating the calls to these templates it generates calls such as:

[packagePath('/')/]/[name/].java

The implicit parameter 'self' is not taken into account and exceptions are raised, it only works explicetily telling to use the parameter self:

[packagePath(self, '/')/]/[name/].java

Nevertheless with templates with only one parameter it isn't needed to explicitely tell the template to use the self parameter.
Comment 1 Stephane Begaudeau CLA 2010-09-13 10:00:35 EDT
Contributed and available in Acceleo 3.0.1 SR1 and Acceleo 3.1.0 M2

*** This bug has been marked as a duplicate of bug 320474 ***