checkstyle icon indicating copy to clipboard operation
checkstyle copied to clipboard

minimum supported JDK version to run Error Prone is JDK 21 as of Error Prone 2.43.0

Open Pankraz76 opened this issue 1 month ago • 3 comments

Expected Behavior

use Error Prone 2.43.0.

related might later on use:

  • https://docs.openrewrite.org/recipes/java/migrate/upgradetojava21
  • https://github.com/checkstyle/checkstyle/blob/0500cab4436f0b2759f5797800ef3e0073454a69/rewrite.yml#L15

Current Behavior (optional)

No response

Context

  • https://github.com/google/error-prone/issues/5365
  • https://github.com/gradle/gradle/issues/35768
  • https://github.com/diffplug/spotless/issues/2755

Pankraz76 avatar Nov 21 '25 13:11 Pankraz76

We already on jdk21 in CI

romani avatar Nov 21 '25 22:11 romani

when can we apply UpgradeToJava21? Do we need v17 support for longer time? gradle using checkstyle and they still on 8 so its quite a large range.

Pankraz76 avatar Nov 23 '25 14:11 Pankraz76

We are not yet ready for jdk21 syntax. We can start using new syntax after https://github.com/checkstyle/checkstyle/pull/17669 is merged , January 2026 .

romani avatar Nov 23 '25 15:11 romani