groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@apache.org
Subject [groovy] branch master updated: GROOVY-9177: Support JDK14
Date Sun, 07 Jul 2019 09:41:35 GMT
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 8498413  GROOVY-9177: Support JDK14
8498413 is described below

commit 8498413858512e949c5d374c1a4a1d2b71c8d10d
Author: Paul King <paulk@asert.com.au>
AuthorDate: Sun Jul 7 19:41:11 2019 +1000

    GROOVY-9177: Support JDK14
---
 build.gradle                                                         | 2 +-
 src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java | 5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/build.gradle b/build.gradle
index b2aa643..763e1ba 100644
--- a/build.gradle
+++ b/build.gradle
@@ -142,7 +142,7 @@ configurations {
 
 ext {
     antVersion = '1.10.5'
-    asmVersion = '7.1'
+    asmVersion = '7.2-beta'
     antlrVersion = '2.7.7'
     bridgerVersion = '1.5.Final'
     coberturaVersion = '1.9.4.1'
diff --git a/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java b/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java
index 7bc3cbe..d6fc9ea 100644
--- a/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java
+++ b/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java
@@ -78,6 +78,8 @@ public class CompilerConfiguration {
     public static final String JDK12 = "12";
     /** This (<code>"13"</code>) is the value for targetBytecode to compile for
a JDK 13. **/
     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 constant is for comparing targetBytecode to ensure it is set to JDK 1.5 or later.
@@ -106,7 +108,8 @@ public class CompilerConfiguration {
             JDK10, Opcodes.V10,
             JDK11, Opcodes.V11,
             JDK12, Opcodes.V12,
-            JDK13, Opcodes.V13
+            JDK13, Opcodes.V13,
+            JDK14, Opcodes.V14
     );
 
     private static final String[] EMPTY_STRING_ARRAY = new String[0];


Mime
View raw message