RFR: 8260959: remove RECORDS from PreviewFeature.Feature enum

Jan Lahoda jlahoda at openjdk.java.net
Thu Feb 4 17:01:42 UTC 2021

On Tue, 2 Feb 2021 18:33:18 GMT, Vicente Romero <vromero at openjdk.org> wrote:

> Please review this simple fix that is removing the RECORDS enum constant from the PreviewFeature.Feature enum, now that RECORDS are final in 16 this constant can be safely removed.
> Thanks,
> Vicente

I think that, in this specific case, we can remove the constant. The reason is that the PreviewFeature has been moved to a different package recently, so the JDK 15/16 versions of the API use the original PreviewFeature class, and should not produce any warnings. The builds look OK as well.


Marked as reviewed by jlahoda (Reviewer).

PR: https://git.openjdk.java.net/jdk/pull/2360

More information about the compiler-dev mailing list