Bug 306078 - Navigate to Inaccessible Field
Summary: Navigate to Inaccessible Field
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.6   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.6 M7   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-16 16:14 EDT by Mihai Danila CLA
Modified: 2010-04-26 13:03 EDT (History)
1 user (show)

See Also:


Attachments
Proposed fix + regression test (13.03 KB, patch)
2010-03-17 22:18 EDT, Olivier Thomann CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.