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

Bug 166646

Summary: [compiler] Missing hiding diagnosies
Product: [Eclipse Project] JDT Reporter: Philipe Mulet <philippe_mulet>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: stephan.herrmann
Version: 3.3   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug

Description Philipe Mulet CLA 2006-12-04 11:03:40 EST
Build 3.3M3

On following testcase, 2 warnings would be expected about field and type hiding.
===================p/A.java
package p;
public class A {
	protected Object foo;
	protected class Member {}
}
===================q/B.java
package q;	
import p.A;
public class B extends A {
	protected Object foo;
	protected class Member {}	
}
Comment 1 Eclipse Genie CLA 2020-02-25 13:57:06 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.
Comment 2 Stephan Herrmann CLA 2020-02-26 18:49:59 EST
For the records: currently (HEAD around 4.15 RC1) we report

----------
1. WARNING in /tmp/q/B.java (at line 4)
        protected Object foo;
                         ^^^
The field B.foo is hiding a field from type A
----------
1 problem (1 warning)


No warning regarding the member type, though.