Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 195000

Summary: [pull up] field that references another field declared in its superclass yields comp. error
Product: [Eclipse Project] JDT Reporter: kely_garcia <kely_garcia>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 3.3   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug

Description kely_garcia CLA 2007-06-30 01:57:20 EDT
Build ID: I20070608-1718

Steps To Reproduce:
Pull up field g on the following: 

public class A {
	public Boolean f;
}

class B extends A {
	Boolean g = super.f;
}

Yields the following refactored code:

public class A {
	public Boolean f;
	Boolean g = super.f;
}

class B extends A {
}

The compilation error is: "f cannot be resolved or is not a field"

More information:
Comment 1 Olivier Thomann CLA 2007-07-01 18:16:23 EDT
Move to JDT/UI
Comment 2 Martin Aeschlimann CLA 2007-07-02 10:49:30 EDT
Moving a field is not a refactoring (see the window title: textual move). 
Comment 3 Martin Aeschlimann CLA 2007-07-02 10:55:54 EDT
sorry, ignore my comment
Comment 4 Eclipse Genie CLA 2019-11-16 14:06:44 EST
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.