Bug 3403 - JCK 1.4 - ICLS - field from outer class and inherited protected field in top-level nested class (1GK7H5X)
Summary: JCK 1.4 - ICLS - field from outer class and inherited protected field in top-...
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: 2012-05-13 09:28 EDT (History)
1 user (show)

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:33 EDT
http://www.ott.oti.com/uvm/OTIIBM/numbat/Testing/JCK-
14/tests/lang/ICLS/icls005/icls00504m011/icls00504m011.html - POSITIVE TEST
Test case:
	javac 1.4: OK
	javac 1.3:
icls00504m011.java:14: i is inherited from 
javasoft.sqe.tests.lang.icls005.icls00504m011.Y and hides variable in outer 
class 
javasoft.sqe.tests.lang.icls005.icls00504m011.icls00504m011.  An 
explicit 'this' qualifier must be used to select the desired instance.
                int x = i;
                        ^
1 error
	Eclipse compiler:
----------
1. ERROR in icls00504m011.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:12 EST

*** This bug has been marked as a duplicate of 3361 ***
Comment 2 peter tomson CLA 2012-05-13 09:28:25 EDT
we did a great job fixing all these bugs years ago, nowadays these faults in these operating systems are very rare and bugs on the internet seem to nearly be a thing of the past we should give ourselves a big pat on the back with the success achieved with the internet i spend most of my time bodybuilding now instead and keeping in really good shape through weight training like bodybuilders do http://bodybuildingforumuk.com/