JDK-8058227 : Debugger has no access to outer variables inside Lambda
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 8
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2014-09-11
  • Updated: 2015-09-29
  • Resolved: 2015-03-26
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8 JDK 9
8u60Fixed 9 b59Fixed
Related Reports
Relates :  
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.