RFR: [Backport] JDK14-8235778: No compilation error reported when a record is declared in a local class

Tagir Valeev amaembo at gmail.com
Tue Jan 28 07:51:29 UTC 2020


Hello!

Why a record inside the local record is not allowed, given that the
local record is implicitly static and static members are allowed
inside? Could you please point me where this is disabled in the
specification? Thanks.

With best regards,
Tagir Valeev.

On Tue, Jan 28, 2020 at 6:29 AM Maurizio Cimadamore
<maurizio.cimadamore at oracle.com> wrote:
>
> Looks good
>
> Maurizio
>
> On 27/01/2020 22:45, Vicente Romero wrote:
> > Please review backport of bug [1] into JDK14. The fix was initially
> > pushed to JDK15. The fix for JDK14 can be seen at [2]. The initial
> > review thread for the fix that got pushed into JDK15 can be seen at [3].
> >
> > Thanks,
> > Vicente
> >
> > [1] https://bugs.openjdk.java.net/browse/JDK-8235778
> > [2] http://cr.openjdk.java.net/~vromero/8235778_jdk14/webrev.00/
> > [3]
> > https://mail.openjdk.java.net/pipermail/compiler-dev/2019-December/014076.html


More information about the compiler-dev mailing list