Bug 129293 - [pull up] refactoring of final static members should change class name in reference [refactoring]
Summary: [pull up] refactoring of final static members should change class name in ref...
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1.1   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-24 03:14 EST by Markus KARG CLA
Modified: 2007-06-14 10:46 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus KARG CLA 2006-02-24 03:14:05 EST
Class B has a member "static final X = 25;".
Class B extends Class A.
Class B uses the member X in several places in form of "B.X" references.

Now do refactoring "Pull-Up" of X from B into A.

The declaration of X has moved from B to A.

But still the references in B read like "B.X".

It would be better to ask users in form of checkbox (and make it checked by default) whether the references shall be rewritten from "B.X" to "A.X".
Comment 1 Frederic Fusier CLA 2006-02-24 07:30:15 EST
Move to JDT/UI. Note that all B.X will be warned by compiler as these are indirect static references after this pull-up...