Community
Participate
Working Groups
http://www.ott.oti.com/uvm/OTIIBM/numbat/Testing/JCK- 14/tests/lang/ICLS/icls005/icls00504m112/icls00504m112.html - POSITIVE TEST Test case: javac 1.4: OK javac 1.3: icls00504m112.java:14: i is inherited from javasoft.sqe.tests.lang.icls005.icls00504m112.Y and hides variable in outer class javasoft.sqe.tests.lang.icls005.icls00504m112.icls00504m112. An explicit 'this' qualifier must be used to select the desired instance. int x = i; ^ 1 error Eclipse compiler: ---------- 1. ERROR in icls00504m112.java (at line 14) int x = i; ^ The field i is defined in an inherited type and an enclosing scope ---------- NOTES:
Changed namelookup to follow JLS 8.5.1 (when compiler is toggled in 1.4 compliance mode). Fixed.
*** Bug 3350 has been marked as a duplicate of this bug. ***
*** Bug 3351 has been marked as a duplicate of this bug. ***
*** Bug 3352 has been marked as a duplicate of this bug. ***
*** Bug 3362 has been marked as a duplicate of this bug. ***
*** Bug 3363 has been marked as a duplicate of this bug. ***
*** Bug 3364 has been marked as a duplicate of this bug. ***
*** Bug 3365 has been marked as a duplicate of this bug. ***
*** Bug 3366 has been marked as a duplicate of this bug. ***
*** Bug 3375 has been marked as a duplicate of this bug. ***
*** Bug 3376 has been marked as a duplicate of this bug. ***
*** Bug 3377 has been marked as a duplicate of this bug. ***
*** Bug 3378 has been marked as a duplicate of this bug. ***
*** Bug 3379 has been marked as a duplicate of this bug. ***
*** Bug 3380 has been marked as a duplicate of this bug. ***
*** Bug 3381 has been marked as a duplicate of this bug. ***
*** Bug 3382 has been marked as a duplicate of this bug. ***
*** Bug 3383 has been marked as a duplicate of this bug. ***
*** Bug 3384 has been marked as a duplicate of this bug. ***
*** Bug 3387 has been marked as a duplicate of this bug. ***
*** Bug 3388 has been marked as a duplicate of this bug. ***
*** Bug 3389 has been marked as a duplicate of this bug. ***
*** Bug 3390 has been marked as a duplicate of this bug. ***
*** Bug 3392 has been marked as a duplicate of this bug. ***
*** Bug 3393 has been marked as a duplicate of this bug. ***
*** Bug 3394 has been marked as a duplicate of this bug. ***
*** Bug 3395 has been marked as a duplicate of this bug. ***
*** Bug 3396 has been marked as a duplicate of this bug. ***
*** Bug 3397 has been marked as a duplicate of this bug. ***
*** Bug 3398 has been marked as a duplicate of this bug. ***
*** Bug 3399 has been marked as a duplicate of this bug. ***
*** Bug 3400 has been marked as a duplicate of this bug. ***
*** Bug 3401 has been marked as a duplicate of this bug. ***
*** Bug 3402 has been marked as a duplicate of this bug. ***
*** Bug 3403 has been marked as a duplicate of this bug. ***
*** Bug 3404 has been marked as a duplicate of this bug. ***
*** Bug 3405 has been marked as a duplicate of this bug. ***
*** Bug 3406 has been marked as a duplicate of this bug. ***
*** Bug 3407 has been marked as a duplicate of this bug. ***