-
Bug
-
Resolution: Won't Fix
-
P4
-
None
-
1.3.0
-
sparc
-
solaris_1
McClusky Testcase Name : loc033_5.java
Compiling - hiding local variable i
More info:
The name of the local variable parameter may
not be redeclared as a local variable within its scope, or a compile-time error occurs.(14.3.2)
When a variable i (declared in a method) is redeclared in an anonymous block, hiding the name of a local variable is allowed and compiles without any problem in JDK1.3.0-F. But the same scenario fails in JDK 1.2.2-W.
Compiling - hiding local variable i
More info:
The name of the local variable parameter may
not be redeclared as a local variable within its scope, or a compile-time error occurs.(14.3.2)
When a variable i (declared in a method) is redeclared in an anonymous block, hiding the name of a local variable is allowed and compiles without any problem in JDK1.3.0-F. But the same scenario fails in JDK 1.2.2-W.