Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4258416

hiding of local variables

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 1.3.0
    • tools
    • 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.

            wmaddoxsunw William Maddox (Inactive)
            sshakilasunw Shahulhameedmohaideenhaleema Shakila (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: