RFR: 8254105: allow static nested declarations [v4]
Vicente Romero
vromero at openjdk.java.net
Wed Oct 28 20:49:48 UTC 2020
On Wed, 28 Oct 2020 17:55:00 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
>> Vicente Romero has updated the pull request incrementally with one additional commit since the last revision:
>>
>> removing duplicated test
>
> src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Check.java line 1232:
>
>> 1230: mask |= STATIC;
>> 1231: else if ((flags & ENUM) != 0 || (flags & RECORD) != 0) {
>> 1232: //log.error(pos, Errors.StaticDeclarationNotAllowedInInnerClasses);
>
> Can't you get rid of the `else if` here?
oops, sure
-------------
PR: https://git.openjdk.java.net/jdk/pull/571
More information about the compiler-dev
mailing list