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

hiding of local variables

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Won't Fix
    • Affects Version/s: 1.3.0
    • Fix Version/s: None
    • Component/s: tools
    • Subcomponent:
    • CPU:
      sparc
    • OS:
      solaris_1

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: