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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P2
    • 8
    • Affects Version/s: None
    • Component/s: core-libs
    • None
    • b82
    • generic
    • generic
    • Verified

      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.

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

              Created:
              Updated:
              Resolved: