RFR: 8345438: Invalid error for return in early construction context lambda

Archie Cobbs acobbs at openjdk.org
Wed Dec 4 15:49:04 UTC 2024


On Wed, 4 Dec 2024 02:39:15 GMT, Chen Liang <liach at openjdk.org> wrote:

> Since those checks were not initialized correct for lambda nesting at all, is there any other implied effects of missing these state initializations? Is there any scenario that is erroneously allowed in a lambda, or any other scenario that is erroneously rejected in a lambda? Would be nice to include them in the test if there is any.

I did think about that as well and couldn't come up with any. However, I've sprinkled in some more tests in 0dce8b32b83.

For the purposes of this analysis, the handling of a lambda should be the same as the handling of a non-constructor method, which is the effect that this patch has.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/22531#issuecomment-2517826149


More information about the compiler-dev mailing list