This is an automated email from the ASF dual-hosted git repository.
sunlan pushed a commit to branch GROOVY_4_0_X
in repository https://gitbox.apache.org/repos/asf/groovy.git
The following commit(s) were added to refs/heads/GROOVY_4_0_X by this push:
new 3127304fd6 GROOVY-11497: add JDK24 constant
3127304fd6 is described below
commit 3127304fd69f60d42074a93f12e26bb30558e191
Author: Daniel Sun <[email protected]>
AuthorDate: Sun Oct 20 05:12:14 2024 +0800
GROOVY-11497: add JDK24 constant
---
src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git
a/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java
b/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java
index df65006322..5d918b1439 100644
--- a/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java
+++ b/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java
@@ -106,6 +106,8 @@ public class CompilerConfiguration {
public static final String JDK22 = "22";
/** This (<code>"22"</code>) is the value for targetBytecode to compile
for a JDK 23. */
public static final String JDK23 = "23";
+ /** This (<code>"24"</code>) is the value for targetBytecode to compile
for a JDK 24. */
+ public static final String JDK24 = "24";
/**
* This constant is for comparing targetBytecode to ensure it is set to
JDK 1.5 or later.
@@ -144,7 +146,8 @@ public class CompilerConfiguration {
JDK20, Opcodes.V20,
JDK21, Opcodes.V21,
JDK22, Opcodes.V22,
- JDK23, Opcodes.V23
+ JDK23, Opcodes.V23,
+ JDK24, Opcodes.V24
);
public static final String DEFAULT_TARGET_BYTECODE =
defaultTargetBytecode();