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

Bug 317948

Summary: Problems with templates with more than 2 parameters.
Product: [Modeling] Acceleo Reporter: Daniel <nasgun>
Component: CoreAssignee: Project Inbox <acceleo-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: stephane.begaudeau
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

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 ***