Bug 3405

Summary: JCK 1.4 - ICLS - static field from outer class and inherited public field in nested class (1GK7HKE)
Product: [Eclipse Project] JDT Reporter: Olivier Thomann <Olivier_Thomann>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.0 M2   
Hardware: All   
OS: Windows 2000   
Whiteboard:

Description Olivier Thomann CLA 2001-10-10 22:54:35 EDT
http://www.ott.oti.com/uvm/OTIIBM/numbat/Testing/JCK-
14/tests/lang/ICLS/icls005/icls00504m102/icls00504m102.html - POSITIVE TEST
Test case:

	javac 1.4: OK
	javac 1.3:
icls00504m102.java:14: i is inherited from 
javasoft.sqe.tests.lang.icls005.icls00504m102.Y and hides variable in outer 
class javasoft.sqe.tests.lang.icls005.icls00504m102.icls00504m102.  An 
explicit 'this' qualifier must be used to select the desired instance.
                int x = i;
                        ^
	Eclipse compiler:
----------
1. ERROR in icls00504m102.java (at line 14)
        int x = i;
                ^
The field i is defined in an inherited type and an enclosing scope
----------
NOTES:
Comment 1 Philipe Mulet CLA 2001-12-12 14:27:51 EST

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