Community
Participate
Working Groups
Given the following Xtend files --- package test class Foo { def Bar foo() { new Bar() } } --- and an Xtend or Java class Bar in the same package. Renaming the constructor call from Bar() to Baz() results in an obsoletely qualified name test.Baz() in the constructor call. If Bar is a Java class, even the return type is qualified by the refactoring. Same behavior for imports: Constructor calls are always fully qualified by the refactoring, type references only when the referred class is a Java class.
See also Bug #370135
Finally fixed and pushed to MASTER as well as SR1. I had to invalidate several caches in the JVM model, which could stand some improvement if more clients are going to rename things or apply changes. Also wrote a bunch of tests.
*** Bug 380087 has been marked as a duplicate of this bug. ***
Requested via bug 522520. -M.