RFR: 8254105: allow static nested declarations [v6]
Vicente Romero
vromero at openjdk.java.net
Tue Nov 3 19:25:16 UTC 2020
> Please review the fix for [JDK-8254105](https://bugs.openjdk.java.net/browse/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](http://cr.openjdk.java.net/~gbierman/8246771/8246771-20200928/specs/local-statics-jls.html). This change is part of the [Records JEP](https://openjdk.java.net/jeps/395). 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](http://cr.openjdk.java.net/~gbierman/8246771/8246771-20200928/specs/records-jls.html). 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.
Vicente Romero has updated the pull request incrementally with one additional commit since the last revision:
addressing review comments
-------------
Changes:
- all: https://git.openjdk.java.net/jdk/pull/571/files
- new: https://git.openjdk.java.net/jdk/pull/571/files/1b478303..7dfca333
Webrevs:
- full: https://webrevs.openjdk.java.net/?repo=jdk&pr=571&range=05
- incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=571&range=04-05
Stats: 488 lines in 25 files changed: 134 ins; 340 del; 14 mod
Patch: https://git.openjdk.java.net/jdk/pull/571.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/571/head:pull/571
PR: https://git.openjdk.java.net/jdk/pull/571
More information about the compiler-dev
mailing list