Community
Participate
Working Groups
Currently the compiler generates a private field pointing to _this in order to point to that this also from within closures. We can instead generate "ClassName.this" when referencing 'this' and can remove the local variable. Note, that this applies for 'super' as well. To enhance the generated code we could check whether we are in a closure and only then use the qualified name to 'this'.
pushed to master. (In reply to comment #0) > To enhance the generated code we could check whether we are in a closure and > only then use the qualified name to 'this'. Considered unimportant, since Bug 342116 will make use of 'this' (bound to XtendClass) very rare.
Because the solution of Bug 342116 isn't improving the situation the compiler now uses the short 'this' and 'super' if possible.
Closing all bugs that were set to RESOLVED before Neon.0