Bug 3388 - JCK 1.4 - ICLS - static class from outer and protected static class from superclass in top-level nested class (1GK7BGP)
Summary: JCK 1.4 - ICLS - static class from outer and protected static class from supe...
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:54 EDT by Olivier Thomann CLA
Modified: 2019-08-21 16:58 EDT (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:54:17 EDT
http://www.ott.oti.com/uvm/OTIIBM/numbat/Testing/JCK-
14/tests/lang/ICLS/icls005/icls00502m0001/icls00502m0001.html - POSITIVE TEST
Test case:
	
	We failed with:
----------
1. ERROR in icls00502m0001.java (at line 14)
        Z z = new Z();
        ^
The field type Z is defined in an inherited type and an enclosing scope
----------
2. ERROR in icls00502m0001.java (at line 15)
        int j = z.i;
                ^^^
z cannot be resolved
----------
NOTES:

OT (17/09/2001 10:50:26 AM)
	javac 1.3 fails this test as well.
icls00502m0001.java:14: javasoft.sqe.tests.lang.icls005.icls00502m0001.Y.Z is 
inherited from javasoft.sqe.tests.lang.icls005.icls00502m0001.Y and hides class 
in outer class 
javasoft.sqe.tests.lang.icls005.icls00502m0001.icls00502m0001.  An 
explicit 'this' qualifier must be used to select the desired instance.
                Z z = new Z();
                ^
icls00502m0001.java:14: javasoft.sqe.tests.lang.icls005.icls00502m0001.Y.Z is 
inherited from javasoft.sqe.tests.lang.icls005.icls00502m0001.Y and hides class 
in outer class 
javasoft.sqe.tests.lang.icls005.icls00502m0001.icls00502m0001.  An 
explicit 'this' qualifier must be used to select the desired instance.
                Z z = new Z();
                          ^
Comment 1 Philipe Mulet CLA 2001-12-12 14:14:56 EST

*** This bug has been marked as a duplicate of 3361 ***
Comment 2 Eclipse Genie CLA 2019-08-21 16:58:03 EDT
New Gerrit change created: https://git.eclipse.org/r/148093