[groovy] branch GROOVY_3_0_X updated: GROOVY-9377: Support JDK15

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[groovy] branch GROOVY_3_0_X updated: GROOVY-9377: Support JDK15

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

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


The following commit(s) were added to refs/heads/GROOVY_3_0_X by this push:
     new 511295f  GROOVY-9377: Support JDK15
511295f is described below

commit 511295f507ff07c311483a3f64d78870ccaf4875
Author: Paul King <[hidden email]>
AuthorDate: Wed Jan 29 22:07:46 2020 +1000

    GROOVY-9377: Support JDK15
   
    (cherry picked from commit 8c34cacc37e55a9264e56182ff9eedd186312704)
---
 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 5cd63cf..bce0c8f 100644
--- a/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java
+++ b/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java
@@ -82,6 +82,8 @@ public class CompilerConfiguration {
     public static final String JDK13 = "13";
     /** This (<code>"14"</code>) is the value for targetBytecode to compile for a JDK 14. */
     public static final String JDK14 = "14";
+    /** This (<code>"15"</code>) is the value for targetBytecode to compile for a JDK 15. */
+    public static final String JDK15 = "15";
 
     /**
      * This constant is for comparing targetBytecode to ensure it is set to JDK 1.5 or later.
@@ -111,7 +113,8 @@ public class CompilerConfiguration {
             JDK11, Opcodes.V11,
             JDK12, Opcodes.V12,
             JDK13, Opcodes.V13,
-            JDK14, Opcodes.V14
+            JDK14, Opcodes.V14,
+            JDK15, Opcodes.V15
     );
 
     /**