Bug 24501 - AST: No binding for fields accesses of non-visible fields
Summary: AST: No binding for fields accesses of non-visible fields
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.1 M2   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-08 09:34 EDT by Martin Aeschlimann CLA
Modified: 2002-10-17 10:30 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 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.