Bug 129293

Summary: [pull up] refactoring of final static members should change class name in reference [refactoring]
Product: [Eclipse Project] JDT Reporter: Markus KARG <markus.karg>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3    
Version: 3.1.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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...