| Summary: | Problems with templates with more than 2 parameters. | ||
|---|---|---|---|
| Product: | [Modeling] Acceleo | Reporter: | Daniel <nasgun> |
| Component: | Core | Assignee: | 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: | |||
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 *** |
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.