From Sam.Mesh at gmail.com Fri Sep 26 23:11:20 2025 From: Sam.Mesh at gmail.com (Sam.Mesh) Date: Fri, 26 Sep 2025 16:11:20 -0700 Subject: Fwd: Effectively final requirement for local variable and method reference, as for lambda In-Reply-To: References: Message-ID: 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From gavin.bierman at oracle.com Tue Sep 30 15:31:07 2025 From: gavin.bierman at oracle.com (Gavin Bierman) Date: Tue, 30 Sep 2025 15:31:07 +0000 Subject: Effectively final requirement for local variable and method reference, as for lambda In-Reply-To: References: Message-ID: 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 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