Community
Participate
Working Groups
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:
*** This bug has been marked as a duplicate of 3361 ***