You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by ke...@apache.org on 2020/09/23 23:06:30 UTC

[groovy] branch master updated: GROOVY-9752: Upgrade ASM to 9.0 and add JDK16 to CompilerConfiguration

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

keegan 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 20d91b9  GROOVY-9752: Upgrade ASM to 9.0 and add JDK16 to CompilerConfiguration
20d91b9 is described below

commit 20d91b9d1e480dd5355248a5dd08363ef3775b38
Author: Keegan Witt <ke...@gmail.com>
AuthorDate: Wed Sep 23 19:03:49 2020 -0400

    GROOVY-9752: Upgrade ASM to 9.0 and add JDK16 to CompilerConfiguration
---
 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 be3a9f0..a753a89 100644
--- a/build.gradle
+++ b/build.gradle
@@ -136,7 +136,7 @@ configurations {
 
 ext {
     antVersion = '1.10.8'
-    asmVersion = '8.0.1'
+    asmVersion = '9.0'
     antlr4Version = '4.7.4'
     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 179ba72..dab2d6b 100644
--- a/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java
+++ b/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java
@@ -87,6 +87,8 @@ public class CompilerConfiguration {
     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 (<code>"16"</code>) is the value for targetBytecode to compile for a JDK 16. */
+    public static final String JDK16 = "16";
 
     /**
      * This constant is for comparing targetBytecode to ensure it is set to JDK 1.5 or later.
@@ -117,7 +119,8 @@ public class CompilerConfiguration {
             JDK12, Opcodes.V12,
             JDK13, Opcodes.V13,
             JDK14, Opcodes.V14,
-            JDK15, Opcodes.V15
+            JDK15, Opcodes.V15,
+            JDK16, Opcodes.V16
     );
 
     /**