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

Bug 471951

Summary: [pull up] Pull Up Field removes a field
Product: [Eclipse Project] JDT Reporter: Melina Mongiovi <melmongiovi>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: loskutov, noopur_gupta, stephan.herrmann
Version: 4.3   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Melina Mongiovi CLA 2015-07-06 13:20:42 EDT
Applying the pull up field refactoring to move field B.f to class A, it removes the field C.f of the program:

Before Refactoring:

Package p1
Public class A

Package p2
Import p1.*
Public class B extends A
   Protected int f = 11
  public long test: B.this.f

Package p2
Import p1.*
Public class C extends B
  private int f = 10

Resulting Program:

Package p1
Public class A
 private int f = 11

Package p2
Import p1.*
Public class B extends A
  public long test: B.this.f

Package p2
Import p1.*
Public class C extends B
Comment 1 Noopur Gupta CLA 2015-08-05 08:22:17 EDT

*** This bug has been marked as a duplicate of bug 355327 ***