You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2022/04/07 04:37:32 UTC

[groovy] branch GROOVY_4_0_X updated: GROOVY-10573: Support ASM JDK19 constants

This is an automated email from the ASF dual-hosted git repository.

paulk 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 838cda261d GROOVY-10573: Support ASM JDK19 constants
838cda261d is described below

commit 838cda261d6c8c7fec69b70075045a16a2cfad5a
Author: Paul King <pa...@asert.com.au>
AuthorDate: Thu Apr 7 14:37:15 2022 +1000

    GROOVY-10573: Support ASM JDK19 constants
---
 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 f4f9c54d19..f3739f7262 100644
--- a/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java
+++ b/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java
@@ -96,6 +96,8 @@ public class CompilerConfiguration {
     public static final String JDK17 = "17";
     /** This (<code>"18"</code>) is the value for targetBytecode to compile for a JDK 18. */
     public static final String JDK18 = "18";
+    /** This (<code>"19"</code>) is the value for targetBytecode to compile for a JDK 19. */
+    public static final String JDK19 = "19";
 
     /**
      * This constant is for comparing targetBytecode to ensure it is set to JDK 1.5 or later.
@@ -129,7 +131,8 @@ public class CompilerConfiguration {
             JDK15, Opcodes.V15,
             JDK16, Opcodes.V16,
             JDK17, Opcodes.V17,
-            JDK18, Opcodes.V18
+            JDK18, Opcodes.V18,
+            JDK19, Opcodes.V19
     );
 
     public static final String DEFAULT_TARGET_BYTECODE = defaultTargetBytecode();