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

"var" assignment to a parameter in a varargs method causes compilation error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2
    • 8
    • None
    • core-libs
    • None
    • b82
    • generic
    • generic
    • Verified

    Description

      This caused an assertion in compilation:

      function f(y) { var y = 1; arguments }

      Turns out, JDK-8006529 changes didn't cover the case where a "var" assignment is made to a parameter of a vararg function.

      Attachments

        Activity

          People

            attila Attila Szegedi
            attila Attila Szegedi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: