Integrated: 8254105: allow static nested declarations

Vicente Romero vromero at
Sat Nov 21 03:22:11 UTC 2020

On Fri, 9 Oct 2020 00:01:12 GMT, Vicente Romero <vromero at> wrote:

> Please review the fix for [JDK-8254105]( The intention of the fix is to allow static members to be declared inside inner classes. The spec allowing this change can be seen at [Local and Nested Static Declarations]( This change is part of the [Records JEP]( The idea is to allow not only records to be defined inside inner classes but also interfaces, enums, static classes and methods.
> TIA,
> Vicente
> PS: the records spec can be accessed here [Record Classes]( This patch also adds a test to check the changes in the Records spec to Chapter 13 "Binary Compatibility". I'm OK moving that test to a separate PR.

This pull request has now been integrated.

Changeset: 9a19eb69
Author:    Vicente Romero <vromero at>
Stats:     758 lines in 26 files changed: 313 ins; 191 del; 254 mod

8254105: allow static nested declarations

Reviewed-by: mcimadamore



More information about the compiler-dev mailing list