JDK-8300691 - final variables in for loop headers should accept updates

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Wed Oct 16 16:03:15 UTC 2024


Thanks!

Maurizio

On 16/10/2024 15:11, Archie Cobbs wrote:
> Hi Maurizio,
>
> On Wed, Oct 16, 2024 at 8:56 AM Maurizio Cimadamore 
> <maurizio.cimadamore at oracle.com> wrote:
>
>     Could you come up with a javac patch that detects such “dummy”
>     variable declarations and prints a note/warning in the compiler
>     output?
>
> Excellent idea - I agree this is something worth further exploration 
> to better understand.
>
> I will work on it and report back.
>
> -Archie
>
> -- 
> Archie L. Cobbs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/amber-dev/attachments/20241016/674fc2c4/attachment.htm>


More information about the amber-dev mailing list