Bug 3366

Summary: JCK 1.4 - ICLS - An inherited interface that shadows a name from an enclosing non-package scope (1GK7LW2)
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:53:55 EDT
http://www.ott.oti.com/uvm/OTIIBM/numbat/Testing/JCK-
14/tests/lang/ICLS/icls073/icls07391m5/icls07391m5.html - POSITIVE TEST
Test case:
	javac 1.4: OK
	javac 1.3:
icls07391m5.java:28: javasoft.sqe.tests.lang.icls073.icls07391m5.A.I is 
inherited from javasoft.sqe.tests.lang.icls073.icls07391m5.A and hides class in 
outer class 
javasoft.sqe.tests.lang.icls073.icls07391m5.icls07391m5.  An explicit 'this' 
qualifier must be used to select the desired instance.
                        class TestInterface implements I {};
                                                       ^
1 error
	Eclipse compiler:
----------
1. ERROR in icls07391m5.java (at line 28)
        class TestInterface implements I {};
                                       ^
Superinterface I is defined in an inherited type and an enclosing scope
----------
2. ERROR in icls07391m5.java (at line 29)
        int i = new TestInterface().intValueOfI;
                                    ^^^^^^^^^^^
intValueOfI cannot be resolved or is not a field
----------
NOTES:
Comment 1 Philipe Mulet CLA 2001-12-12 13:39:46 EST

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