Hi

I'm looking for confirmation about whether the 4.0.27 Groovy release can be 
compiled and run under, and interoperate with, Java 21 (eg: Temurin 
21.0.7+6-LTS) as at 16/7/2025.

The Release Notes for 4 and 5 say:

  *
The Apache Groovy programming language - Groovy 4.0 release 
notes<https://groovy-lang.org/releasenotes/groovy-4.0.html#Groovy4.0-requirements>
 “Groovy 4 has been tested on JDK versions 8 through 17. … 4.0.2 Preliminary 
JDK19 support has been added“
  *
The Apache Groovy programming language - Groovy 5.0 release 
notes<https://groovy-lang.org/releasenotes/groovy-5.0.html#Groovy5.0-requirements>
 “Groovy 5 has been tested on JDK versions 11 through 25”


However there are a number of patches since 4.0.0 that add > JDK17 support.

[GROOVY-10479] Disable Ant tests which don't fork under JDK18 - ASF 
JIRA<https://issues.apache.org/jira/browse/GROOVY-10479>

[GROOVY-10573] Support ASM JDK19 constants - ASF 
JIRA<https://issues.apache.org/jira/browse/GROOVY-10573>

[GROOVY-10782] Support for java 19 - ASF 
JIRA<https://issues.apache.org/jira/browse/GROOVY-10782>

[GROOVY-10986] Add JDK21 constant - ASF 
JIRA<https://issues.apache.org/jira/browse/GROOVY-10986>

[GROOVY-11197] Support JDK 22 - ASF 
JIRA<https://issues.apache.org/jira/browse/GROOVY-11197>   Fix Version/s:  
5.0.0-alpha-3<https://issues.apache.org/jira/issues/?jql=project+%3D+GROOVY+AND+fixVersion+%3D+5.0.0-alpha-3>,
 
4.0.16<https://issues.apache.org/jira/issues/?jql=project+%3D+GROOVY+AND+fixVersion+%3D+4.0.16>

[GROOVY-11347] Support JDK 23 - ASF 
JIRA<https://issues.apache.org/jira/browse/GROOVY-11347>   Fix Version/s:  
5.0.0-alpha-8<https://issues.apache.org/jira/issues/?jql=project+%3D+GROOVY+AND+fixVersion+%3D+5.0.0-alpha-8>,
 
4.0.21<https://issues.apache.org/jira/issues/?jql=project+%3D+GROOVY+AND+fixVersion+%3D+4.0.21>

  *

Is the Release Note correct in saying 4.0.27 it is only tested (for production 
use) to JDK17, or can we rely on the patch content as verification that 4.0.21+ 
usably supports up to JDK23 now?

Thanks
 Rob



  *



Reply via email to