Bug 306078

Summary: Navigate to Inaccessible Field
Product: [Eclipse Project] JDT Reporter: Mihai Danila <mihai.danila>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: Olivier_Thomann
Version: 3.6   
Target Milestone: 3.6 M7   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed fix + regression test none

Description Mihai Danila CLA 2010-03-16 16:14:20 EDT
Build Identifier: 20100218-1602

public class A { private static final int X = 0; }
public class B { int x = A.X; }

Eclipse recognizes A.X as a private, inaccessible field, but refuses to navigate to it when placing the cursor on the X and pressing  F3.


Reproducible: Always
Comment 1 Olivier Thomann CLA 2010-03-17 22:18:09 EDT
Created attachment 162376 [details]
Proposed fix + regression test
Comment 2 Olivier Thomann CLA 2010-03-18 12:25:07 EDT
Released for 3.6M7.
Regression test added in:
org.eclipse.jdt.core.tests.model.ResolveTests#test306078
Comment 3 Frederic Fusier CLA 2010-04-26 13:03:08 EDT
Verified for 3.6M7 using I20100425-2000.