Community
Participate
Working Groups
Build Identifier: 201107041000 If two ITDs refer to two separate Java types with the same simple name but in different packages, then pushing those ITDs into the target Java class will result in only one of those types being referenced (the other type being ignored). Reproducible: Always Steps to Reproduce: 1. Extract the ZIP file I'm about to attach containing a sample minimal Eclipse project. 2. Note there are two ITDs, one importing demo.lib1.Called and the other importing demo.lib2.Called, and that The target type Target.java is empty. 3. In Eclipse, right-click the project and use Refactor > Push In to push in both ITDs at once. 4. The resulting Java class does not compile because only demo.lib1.Called is imported; the reference to the other class of this name should be in fully qualified form, i.e. should say "demo.lib2.Called.bar()", not "Called.bar()".
Created attachment 199304 [details] Minimal project to demonstrate the bug (see comment 0)
Thanks for the test case. I'll have a look at it for the 2.2.0 release.
Consider for the 2.2.1 release.
Happy birthday, this bug! :-)
Consider for 2.2.2.
Moving to 2.2.3.
Consider for the 2.2.4 release.