Debuggability of lambdas

John Rose john.r.rose at
Mon Jan 19 22:33:37 UTC 2015

On Jan 19, 2015, at 3:04 AM, Maurizio Cimadamore <maurizio.cimadamore at> wrote:
>  I think your proposal seems very reasonable - and pretty much in line with what it's done i.e. inside anonymous classes which capture local variables from the enclosing scope. By analogy with that example, I'd say that variables such as your 'map' should be left alone?

+1  The inner classes support for debuggers is pretty simple; we assign the synthetic copy the same name as the original value.

The synthetic copies should be marked final, so nobody tries to "set" them from a debugger.

— John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the compiler-dev mailing list