Bug 235118 - [push down] field lets client access formerly hidden field instead [refactoring]
Summary: [push down] field lets client access formerly hidden field instead [refactoring]
Status: CLOSED DUPLICATE of bug 313043
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-02 08:49 EDT by Friedrich Steimann CLA
Modified: 2010-06-15 16:08 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 Friedrich Steimann CLA 2008-06-02 08:49:33 EDT
Build ID: I20080523-0100

Steps To Reproduce:

public class A {
        int x = 1;
}

public class B extends A {
        int x = 2;
}

public class C extends B {}

Pushing down x from B to C makes clients of B access the inherited x from A. This changes program semantics!

More information:

converse of https://bugs.eclipse.org/bugs/show_bug.cgi?id=235112
Comment 1 Deepak Azad CLA 2010-06-15 16:08:57 EDT

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