Bug 3365 - JCK 1.4 - ICLS - An inherited class that shadows a name from an enclosing non-package scope (1GK7LTA)
Summary: JCK 1.4 - ICLS - An inherited class that shadows a name from an enclosing non...
Status: RESOLVED DUPLICATE of bug 3361
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: All Windows 2000
: P3 normal (vote)
Target Milestone: 2.0 M2   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-10 22:53 EDT by Olivier Thomann CLA
Modified: 2002-01-11 08:56 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 Olivier Thomann CLA 2001-10-10 22:53:54 EDT
http://www.ott.oti.com/uvm/OTIIBM/numbat/Testing/JCK-
14/tests/lang/ICLS/icls073/icls07391m4/icls07391m4.html - POSITIVE TEST
Test case:
	javac 1.4: OK
	javac 1.3:
icls07391m4.java:28: javasoft.sqe.tests.lang.icls073.icls07391m4.A.B is 
inherited from javasoft.sqe.tests.lang.icls073.icls07391m4.A and hides class in 
outer 
class javasoft.sqe.tests.lang.icls073.icls07391m4.icls07391m4.  An 
explicit 'this' qualifier must be used to select the desired instance.
                        int i = new B().intValueOfB;
                                    ^
1 error
	Eclipse compiler:
----------
1. ERROR in icls07391m4.java (at line 28)
        int i = new B().intValueOfB;
                    ^
The type B is defined in an inherited type and an enclosing scope
----------
NOTES:
Comment 1 Philipe Mulet CLA 2001-12-12 13:38:58 EST

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