Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 123572

Summary: Code assist proposes non accessible type
Product: [Eclipse Project] JDT Reporter: Jerome Lanneluc <jerome_lanneluc>
Component: CoreAssignee: David Audel <david_audel>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug
Attachments:
Description Flags
Projects to repoduce the problem none

Description Jerome Lanneluc CLA 2006-01-12 03:50:06 EST
I20060110

If a type is fobidden on the first classpath entry, but allowed in the second classpath entry, code assist should not offer it as the compiler will generate an error.
Comment 1 Jerome Lanneluc CLA 2006-01-12 03:53:43 EST
Created attachment 32895 [details]
Projects to repoduce the problem

To reproduce:
1. Unzip the attached projects
2. Import them in the workspace
3. Open P/Y.java
4. Ensure that the 'Hide forbidden reference' preference is enabled
5. Code assist after 'p.X'
Observe: p.X is proposed
However if you compile Y.java, an error is shown for a fobidden access to p.X.
Comment 2 Eclipse Genie CLA 2020-01-30 16:50:18 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.