Bug 24501

Summary: AST: No binding for fields accesses of non-visible fields
Product: [Eclipse Project] JDT Reporter: Martin Aeschlimann <martinae>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.1 M2   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Martin Aeschlimann CLA 2002-10-08 09:34:10 EDT
see bug 24449:
In this code all accesses to 'fCoo' have binding due to the no-visible problem.
Debugged this and saw that there is also a binding for the first 'fCoo'. (Note 
that the example is different than in bug 24449, now D extends C.

public class C {
  private int fCoo;
}

public class D extends C {
  public void goo(C c) {
    fCoo= 1;
    super.fCoo= 1;
    C.fCoo= 1;
    c.fCoo= 1;
  }
}
Comment 1 Martin Aeschlimann CLA 2002-10-08 09:42:15 EDT
TestCases:
LocalCorrectionsQuickFixTest
.testInvisibleFieldRequestedInSamePackage1
.testInvisibleFieldRequestedInSamePackage2
Comment 2 Olivier Thomann CLA 2002-10-08 09:44:43 EDT
I will investigate.
Comment 3 Olivier Thomann CLA 2002-10-08 11:27:17 EDT
Fixed and released in 2.1 stream. Regression tests added.
Comment 4 Olivier Thomann CLA 2002-10-08 11:39:11 EDT
Change target milestone.
Comment 5 David Audel CLA 2002-10-17 10:30:32 EDT
Verified.