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

Debugger has no access to outer variables inside Lambda

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 9
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • Introduced In Version:
      8
    • Resolved In Build:
      b59
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Backports

        Description

        See issue https://netbeans.org/bugzilla/show_bug.cgi?id=246528
        In the attached project, when the debugger is suspended on line 7, no variables can be seen.
        When we look into stack frame "155584260.process", there are two arguments under "this":
        arg$1 = Main@383534aa
        arg$2 = "test"
        The second argument is actually a value of the desired "variable".
        Please add the outer variables to the LocalVariableTable so that debuggers can access them.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                jlahoda Jan Lahoda
                Reporter:
                mentlich Martin Entlicher
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: