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/06/29 06:31:48 UTC

[groovy] branch master updated: GROOVY-10155: Add JDK18 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 5524137  GROOVY-10155: Add JDK18 constant
5524137 is described below

commit 5524137fc2244d0189c6207410c8ac86a8d2ad8b
Author: Paul King <pa...@asert.com.au>
AuthorDate: Tue Jun 29 16:31:40 2021 +1000

    GROOVY-10155: Add JDK18 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 40a7432..4d0b789 100644
--- a/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java
+++ b/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java
@@ -91,6 +91,8 @@ public class CompilerConfiguration {
     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 (<code>"18"</code>) is the value for targetBytecode to compile for a JDK 18. */
+    public static final String JDK18 = "18";
 
     /**
      * This constant is for comparing targetBytecode to ensure it is set to JDK 1.5 or later.
@@ -123,7 +125,8 @@ public class CompilerConfiguration {
             JDK14, Opcodes.V14,
             JDK15, Opcodes.V15,
             JDK16, Opcodes.V16,
-            JDK17, Opcodes.V17
+            JDK17, Opcodes.V17,
+            JDK18, Opcodes.V18
     );
 
     /**