Update minimum JDK version

With LT 6.5 out, should we update minimum JDK version?
JDK 8 was released 10 years ago and its (general) end-of-life was 2 years ago.
Many LT dependencies are not updating their versions for JDKs that old.
Should be update LT to 21 (LTS) (or at least 17) for LT 6.6??

Probably yes, but there were also some issues in the past ([jdk11] problem with dependencies · Issue #3303 · languagetool-org/languagetool · GitHub, Tests fail on build with Java 15 (and 14) · Issue #3627 · languagetool-org/languagetool · GitHub). I think there was also some strange edge case with regex that occurred only at runtime. So, this might be a bit more work. Would you be interested in helping make the update?

Sure, I will take a shot at this when I have time and will report here.

So I’ve updated the compiler level to 17 and updated some of the dependencies to the latest versions.
So far all unit tests for standalone pass when using openjdk-17 on Linux and I’ve ran an extensive corpus test for Ukrainian.
I’ve pushed these changes into jdk17 branch.
#3303 seems to be related to JPMS and not the java version itself so that’s a separate issue.
#3627 is from 2020 so I am not sure if that still applies.

1 Like

Thanks, I’ll discuss that with the DevOps team (will take some time, though).