RFR: 8328649: Disallow enclosing instances for local classes in constructor prologues

Archie Cobbs acobbs at openjdk.org
Thu Mar 21 14:32:24 UTC 2024


On Thu, 21 Mar 2024 02:48:47 GMT, Chen Liang <liach at openjdk.org> wrote:

> According to https://github.com/openjdk/jdk/pull/13656#issuecomment-1732340240 this change will affect the class file generated, such as for your given example. Should this patch get a CSR then?

Well, this change only affects generated classfiles in the sense that it will be no longer possible to generate certain classfiles because compilation will fail instead :)

But regardless I think a CSR is probably warranted so I'll add one. Thanks.

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

PR Comment: https://git.openjdk.org/jdk/pull/18416#issuecomment-2012450686


More information about the compiler-dev mailing list