lambda bugs? referencing instance variable from lambda body

Brian Goetz brian.goetz at oracle.com
Thu Sep 12 17:58:09 PDT 2013


> However, please confirm that even without "this.", lambda always
> captures only "this", it never captures the instance variables' values
> at the time of lambda creation.

That is how it is supposed to work, yes.  Any member capture becomes a 
capture of 'this'.


More information about the lambda-dev mailing list