Bug 108152 - [inline] Inline Method doesn't remove imports
Summary: [inline] Inline Method doesn't remove imports
Status: REOPENED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: helpwanted
: 238290 378028 511746 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-08-26 13:07 EDT by Brian Miller CLA
Modified: 2022-07-01 05:42 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brian Miller CLA 2005-08-26 13:07:45 EDT
Be sure the "Delete method declaration" checkbox is checked when inlining 
method().  See that the lingering static import statement is illegal.

-------------------- bug/Source.java -----------------
package bug;
public class Source {
    public static void method(){ System.exit(0); }
}

------------------- Destination.java ------------------
import static bug.Source.method;
class Destination {
    { method(); }
}
Comment 1 Dirk Baeumer CLA 2005-08-29 05:33:30 EDT
Inline method currently doesn't remove any imports. 
Comment 2 Dani Megert CLA 2017-04-14 09:21:33 EDT
*** Bug 238290 has been marked as a duplicate of this bug. ***
Comment 3 Dani Megert CLA 2017-04-14 09:21:40 EDT
*** Bug 511746 has been marked as a duplicate of this bug. ***
Comment 4 Dani Megert CLA 2017-04-14 09:22:36 EDT
*** Bug 378028 has been marked as a duplicate of this bug. ***
Comment 5 Eclipse Genie CLA 2020-02-15 09:13:02 EST Comment hidden (obsolete)
Comment 6 Lars Vogel CLA 2020-07-06 10:57:02 EDT
Still relevent
Comment 7 Eclipse Genie CLA 2022-07-01 05:42:45 EDT
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.