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

Inconsistent lambda parameter span

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 11
    • Fix Version/s: 11
    • Component/s: tools
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b18

      Backports

        Description

        Consider code like this:
        java.util.function.IntBinaryOperator c = (var x, testType) -> 1;

        The span for the "var x" variable does not include "var". The span of "testType" does not include "testType" after attribution.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                jlahoda Jan Lahoda
                Reporter:
                jlahoda Jan Lahoda
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: