Bug 7062 - Codeassist includes invisible inherited field in proposal
Summary: Codeassist includes invisible inherited field in proposal
Status: RESOLVED DUPLICATE of bug 5370
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows NT
: P2 normal (vote)
Target Milestone: ---   Edit
Assignee: Claude Knaus CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-12-18 13:16 EST by Knut Radloff CLA
Modified: 2002-02-06 10:03 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Knut Radloff CLA 2001-12-18 13:16:28 EST
build 20011206

I have a class A:
package kr.test;
public class A {
	int anInt;
}

I edit class B:
package kr.PR;
import kr.test.A;
public class B extends A {
public B() {
	int j = an;
}	
}

I invoke code assist on the incomplete name "an" and get anInt as a proposal 
even though it is package visible in class A which is in a different package.
Comment 1 Erich Gamma CLA 2001-12-18 15:56:17 EST
You can configure the visibility of proposals on the preference page. The 
default is to show invisible elements.

We should change the default to only show visible members
Comment 2 Claude Knaus CLA 2002-02-06 10:03:51 EST

*** This bug has been marked as a duplicate of 5370 ***