[jdk23] RFR: 8334751: revert fix for JDK-8334488 which introduced a regression
Chen Liang
liach at openjdk.org
Fri Jun 21 22:44:19 UTC 2024
On Fri, 21 Jun 2024 21:36:43 GMT, Vicente Romero <vromero at openjdk.org> wrote:
> Fix for [JDK-8334488](https://bugs.openjdk.org/browse/JDK-8334488) which was backported from JDK 24 introduced a regression in javac. We propose to revert it. Basically code like:
>
> class Test {
> Test() {}
>
> Test(int a) {
> class InnerLocal {}
> new InnerLocal() {}; //compilation fails here
> this();
> }
> }
>
> should be accepted and it is being rejected after the mentioned backport.
Should we backout following the procedure at https://openjdk.org/guide/#backing-out-a-backport instead?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/19838#issuecomment-2183550704
More information about the compiler-dev
mailing list