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 2021/03/04 10:58:43 UTC

[groovy] branch master updated: GROOVY-9943: Add JDK17 constant

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

paulk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/master by this push:
     new b6a6ef6  GROOVY-9943: Add JDK17 constant
b6a6ef6 is described below

commit b6a6ef6a55766ab3553dbce9ea3218be9a25fbc1
Author: Paul King <pa...@asert.com.au>
AuthorDate: Thu Mar 4 20:58:23 2021 +1000

    GROOVY-9943: Add JDK17 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 d349c55..d706387 100644
--- a/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java
+++ b/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java
@@ -89,6 +89,8 @@ public class CompilerConfiguration {
     public static final String JDK15 = "15";
     /** This (<code>"16"</code>) is the value for targetBytecode to compile for a JDK 16. */
     public static final String JDK16 = "16";
+    /** This (<code>"17"</code>) is the value for targetBytecode to compile for a JDK 17. */
+    public static final String JDK17 = "17";
 
     /**
      * This constant is for comparing targetBytecode to ensure it is set to JDK 1.5 or later.
@@ -120,7 +122,8 @@ public class CompilerConfiguration {
             JDK13, Opcodes.V13,
             JDK14, Opcodes.V14,
             JDK15, Opcodes.V15,
-            JDK16, Opcodes.V16
+            JDK16, Opcodes.V16,
+            JDK17, Opcodes.V17
     );
 
     /**