RFR: 8365699: Remove jdk.internal.javac.PreviewFeature.Feature enum values for features finalized in Java 25 or earlier

Jaikiran Pai jpai at openjdk.org
Wed Nov 5 07:35:00 UTC 2025


On Tue, 4 Nov 2025 10:33:27 GMT, Jaikiran Pai <jpai at openjdk.org> wrote:

> Can I please get a review of this change which cleans up the outdated enum constants in the internal `jdk.internal.javac.PreviewFeature$Feature` enum?
> 
> This addresses https://bugs.openjdk.org/browse/JDK-8365699. As noted in that issue, this enum has accumulated some outdated preview feature constants which are no longer needed. The changes in this PR removes those enum constants whose preview features have been finalized in Java 25 or earlier (the current mainline bootstrap JDK is Java 25). A code comment explaining the lifetime of these enum constants has also been added.
> 
> No new tests have been introduced and tier1, tier2, tier3 testing is currently in progress in the CI.

tier1, tier2 and tier3 testing of this change completed without any failures.

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

PR Comment: https://git.openjdk.org/jdk/pull/28128#issuecomment-3489743887


More information about the compiler-dev mailing list