Effectively final requirement for local variable and method reference, as for lambda

Gavin Bierman gavin.bierman at oracle.com
Tue Sep 30 15:31:07 UTC 2025


Hi Sam,

This mail alias is for reporting technical errors and ambiguities in the JLS. I’m not sure that I understand your email I’m afraid. Are you suggesting that there is a problem with the specification regarding effectively final variables (4.12.4) or around the requirement that any local variable, formal parameter, or exception parameter used but not declared in a lambda expression must either be final or effectively final (15.27.2)?

Thanks,
Gavin

> On 27 Sep 2025, at 00:11, Sam.Mesh <Sam.Mesh at gmail.com> wrote:
> 
> Dear JLS Team,
> 
> Could you please advise whether in JLS there is effectively final requirement for local variable and method reference, same as for lambda?
> 
> Thanks,
> Sam



More information about the jls-jvms-spec-comments mailing list