| Summary: | [xtend2] Missing "this" keyword in gen. code if custom extension is used as initializer in create extensions. | ||
|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Christian Schneider <christian.schneider> |
| Component: | Xtext | Assignee: | Project Inbox <tmf.xtext-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | P3 | CC: | sebastian.zarnekow |
| Version: | 2.1.0 | Flags: | sebastian.zarnekow:
juno+
|
| Target Milestone: | M4 | ||
| Hardware: | All | ||
| OS: | Mac OS X - Carbon (unsup.) | ||
| Whiteboard: | |||
The wrong generated code looks like: Test _Test = Test; Object _a = _Test.a(); but should be Test _Test = Test.this; Object _a = _Test.a(); Duplicate. (In reply to comment #2) > Duplicate. So this already fixed in the master branch? (In reply to comment #3) > So this already fixed in the master branch? Yes, and in the already available maintenance release 2.1.1, too. Closing all bugs that were set to RESOLVED before Neon.0 Closing all bugs that were set to RESOLVED before Neon.0 |
Build Identifier: 2.1.0.v201111010612 The transformation code class Test { def Object create o: a() b() { } def Object a() { return null; } } leads to erroneous generated Java transformation code! Reproducible: Always Steps to Reproduce: 1. create an Xtend Class 2. copy+paste the above snippet 3. save 4. open the generated code