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

Bug 356471

Summary: [pull up] introduces compilation error when pulling private field
Product: [Eclipse Project] JDT Reporter: Gustavo Soares <gsoares>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: markus.kell.r
Version: 3.8   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard: stalebug

Description Gustavo Soares CLA 2011-09-01 09:29:49 EDT
Build Identifier: 20110615-0604

Pulling up a private field introduce a compilation error: The field is not visible.

Reproducible: Always

Steps to Reproduce:
1. Create the classes
public class A {
  long f;
}
public class B extends A {
}
public class C extends B {
   private long f;
  public long m(){
    return super.f;
  }
}
2. Apply the pull up field to C.f
public class A {
  long f;
}
public class B extends A {
   private long f;
}
public class C extends B {
  public long m(){
    return super.f;
  }
}
3. The resulting program does not compile.
Comment 1 Eclipse Genie CLA 2020-03-14 19:24:39 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. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. 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.