RFR: JDK-8312415: Expand -Xlint:serial checks to enum constants with specialized class bodies [v2]

Joe Darcy darcy at openjdk.org
Tue Jul 25 18:58:14 UTC 2023


On Tue, 25 Jul 2023 15:16:05 GMT, Jan Lahoda <jlahoda at openjdk.org> wrote:

>> See these lines in `Symbol.java` `public ElementKind getKind()` line 1725:
>> 
>>             } else if ((flags & ENUM) != 0) {
>>                 return ElementKind.ENUM_CONSTANT;
>
> Yes, sorry for that, I've originally had the code elsewhere. The `isEnum` check should not be needed here.

Code updated; all langtools tests pas when run locally. Thanks.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/15004#discussion_r1273958967


More information about the compiler-dev mailing list