Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 357419 - [pull up field] enables field hiding (behavioral change)
Summary: [pull up field] enables field hiding (behavioral change)
Status: CLOSED DUPLICATE of bug 235112
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:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-12 16:58 EDT by Gustavo Soares CLA
Modified: 2011-10-24 13:23 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-12 16:58:20 EDT
Build Identifier: 

Program's behavior change after pulling up a field. 



Reproducible: Always

Steps to Reproduce:
1. Create the classes

public class A {
  public int k = 10;
}
public class B extends A {
}
public class C extends B {
  private int k = 20;
  public int test() {
    return super.k;
  }    
}

2. Apply the pull up field refactoring to f

public class A {
  public int k = 10;
}
public class B extends A {
  private int k = 20;
}
public class C extends B {
  public int test() {
    return super.k;
  }    
}

3. After the transformation, the test method returns 20 instead of 10.
Comment 1 Raksha Vasisht CLA 2011-10-24 13:23:03 EDT

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