You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Preparation for Migration of Checkstyle Codebase to Java 21 #17429
Reason to enable preview features of jdk in checkstyle:
Checkstyle vis always behind in jdk usage by 1 or 2 lat releases.
Preview features are appearing and removed, good example is "String templates" in jdk21. It is very awaited feature by users, so user immediately would use it, but it challenging in consistent behavior, so it was removed few releases later. If checkstyle started to use such feature, it will be pain to refactor to stop using it. We removed support of string templates, as it was big problem for us to support too.
checkstyle has its own parser of java, so even jdk preview feature is in , and we enable them, on first usage of it checkstyle will fail to parse it , CI will be very red. So we naturally limited to features that checkstyle java parser supports. Adding features to our parser is huge effort, and highly unlikely to be done for preview features.
changed the title [-]Preparation for Migration of Checkstyle Codebase to Java 17[/-][+]Preparation for Migration of Checkstyle Codebase to Java 21[/+]on Jul 20, 2025
Activity
[-]Preparation for jdk21 migration[/-][+]Preparation for Migration of Checkstyle Codebase to Java 17[/+][-]Preparation for Migration of Checkstyle Codebase to Java 17[/-][+]Preparation for Migration of Checkstyle Codebase to Java 21[/+]Issue checkstyle#17429: Relocate inputs to compilable path for block …
Issue checkstyle#17429: Relocate inputs to compilable path for block …
Issue checkstyle#17429: Relocate inputs to compilable path for block …
Issue checkstyle#17429: Relocate inputs to compilable path for block …
Issue checkstyle#17429: Relocate inputs to compilable path for block …
Issue checkstyle#17429: Relocate inputs to compilable path for block …
Issue #17429: Relocate inputs to compilable path for block check
Issue checkstyle#17429: Relocate inputs to compilable path for Coding…
145 remaining items
Issue checkstyle#17429: Changing Java Version in Pom to 21
Issue checkstyle#17429: Changing References to JDK21
Issue checkstyle#17429: Changing References to JDK21
Issue #17429: Changing References to JDK21
romani commentedon Aug 26, 2025
I think we are done here.
final switch to jdk21 will be at #17430
Issue checkstyle#17429: Changing Java Version in Pom to 21
Issue checkstyle#17429: Changing Java Version in Pom to 21
Issue checkstyle#17429: Changing Java Version in Pom to 21
Issue checkstyle#17429: Changing Java Version in Pom to 21
Issue checkstyle#17429: Changing Java Version in Pom to 21
Issue checkstyle#17429: Upgrading no-exception-samples-gradle to JDK21
Issue checkstyle#17429: Replacing JDK Back to 17 In Gradle Build to F…
Issue #17429: Replacing JDK Back to 17 In Gradle Build to Fix CI