| Summary: | [Xtend] static methods may not call instance extension methods | ||
|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Holger Schill <Holger.Schill> |
| Component: | Xtext | Assignee: | Moritz Eysholdt <moritz.eysholdt> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | P3 | CC: | sven.efftinge |
| Version: | 2.2.0 | Flags: | sven.efftinge:
juno+
|
| Target Milestone: | M4 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
There is also contentAssist for this. fixed. pushed to 'master'. Closing all bugs that were set to RESOLVED before Neon.0 Closing all bugs that were set to RESOLVED before Neon.0 |
Steps to reproduce: class Foo { extension Test a def static bar(){ "42".foo } } If the class Test has a non static method foo(String a) the code above will lead to the following invalid java: @SuppressWarnings("all") public class Foo { private Test a; public static String bar() { String _foo = this.a.foo("42"); return _foo; } }