Summary: | [rename] "Rename package" refactoring drops 2nd static import of method with same name but different signature | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Volker Stolz <stolz+bugzilla> | ||||||
Component: | UI | Assignee: | JDT-UI-Inbox <jdt-ui-inbox> | ||||||
Status: | ASSIGNED --- | QA Contact: | |||||||
Severity: | minor | ||||||||
Priority: | P3 | CC: | erlend.k, jjohnstn, manju656, samrat.dhillon, srikanth_sankaran | ||||||
Version: | 4.3.1 | Flags: | manju656:
review?
(manju656) |
||||||
Target Milestone: | --- | ||||||||
Hardware: | All | ||||||||
OS: | All | ||||||||
Whiteboard: | stalebug | ||||||||
Attachments: |
|
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. 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. |
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.