Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 356471 - [pull up] introduces compilation error when pulling private field
Summary: [pull up] introduces compilation error when pulling private field
Status: CLOSED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.8   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-01 09:29 EDT by Gustavo Soares CLA
Modified: 2020-03-14 19:24 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.