| Summary: | Overrides are writing on top of each other between modules | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Modeling] Acceleo | Reporter: | Glenview Jeff <junk> | ||||
| Component: | Core | Assignee: | Project Inbox <acceleo-inbox> | ||||
| Status: | CLOSED WORKSFORME | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | junk | ||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Glenview Jeff
Created attachment 184320 [details]
Test case that shows what appears to be the bug
I created a small project (attached) that demonstrates the bug/problem. Once you get everything built and you execute main.mtl, note that NameA.java ends up incorrectly having the line execute body: temBExecute(anItemHolderName) instead of ItemAExecute(anItemHolderName) Thanks! Jeff Please disregard this problem. I think it was due to my misunderstanding of how inheritance works in Acceleo/MTL. I fixed the problem by adding the specialized Items: ItemA, ItemB to the parameter list of the problematic templates. I think I was thinking of modules as similar to Java classes and expecting the overloading to work throughout the module automatically. Thanks, Jeff |