Flexible constructor bodies: Odd treatment of "return" in lambdas.

Archie Cobbs archie.cobbs at gmail.com
Wed Dec 4 01:47:56 UTC 2024


On Tue, Dec 3, 2024 at 7:04 PM Ella Ananeva <ella.ananeva at oracle.com> wrote:

> For some reason, compiler rejects “return” in lambda if it’s declared in
> the early construction context.
>

Hi Ella,

That is a bug - thanks for finding and reporting it.

Filed as JDK-8345438 <https://bugs.openjdk.org/browse/JDK-8345438>.

-Archie

-- 
Archie L. Cobbs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/amber-dev/attachments/20241203/c26345ac/attachment.htm>


More information about the amber-dev mailing list