Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 37258 - hover wrong for fields hiding fields in superclass
Summary: hover wrong for fields hiding fields in superclass
Status: RESOLVED DUPLICATE of bug 23561
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-06 06:29 EDT by Ilja Preuss CLA
Modified: 2003-05-06 09:20 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ilja Preuss CLA 2003-05-06 06:29:48 EDT
Debug the following code:

public class Foo {
  private Object object;
}

public class Bar extends Foo {
  private Object object = new Object();
  public static void main(String[] args) {
    new Bar().foo();
  }
  private void foo() {
    System.out.print(object); // BREAKPOINT here
  }
}

After hitting the breakpoint, the hover for "object" will show "null" as its 
value (which is the value of the super classes field).
Comment 1 Darin Wright CLA 2003-05-06 09:20:19 EDT

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