Community
Participate
Working Groups
Created attachment 236957 [details] sample project Sample code: package b; import static a.A.foo; import static a.B.foo; public class C { public void test() { foo(); foo("hello"); } } If now package "a" is renamed e.g. to "x", the 2nd static import will disappear, leading to a compilation error. I suspect someone is too eagerly filtering duplicate imports.
Move to JDT/UI for comment.
Created attachment 237219 [details] Fix and Tests Passing false to ImportRewrite#addStaticImport for isField seems to fix this. This contribution complies with http://www.eclipse.org/legal/CoO.php
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.
This bug still occurs in latest Eclipse.