You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by em...@apache.org on 2022/06/11 12:21:13 UTC

[groovy] 01/02: GROOVY-10656: set `ASM_API_VERSION` to `ASM9`

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

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

commit 03280bd2be049eff8ac796522bba08a5f39507b0
Author: Eric Milles <er...@thomsonreuters.com>
AuthorDate: Sat Jun 11 07:20:27 2022 -0500

    GROOVY-10656: set `ASM_API_VERSION` to `ASM9`
---
 .../java/org/codehaus/groovy/control/CompilerConfiguration.java  | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java b/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java
index 66d894ba0d..3fd812e02e 100644
--- a/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java
+++ b/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java
@@ -107,10 +107,15 @@ public class CompilerConfiguration {
             JDK15, Opcodes.V15
     );
 
-    /** The valid targetBytecode values. */
+    /**
+     * The valid targetBytecode values.
+     */
     public static final String[] ALLOWED_JDKS = JDK_TO_BYTECODE_VERSION_MAP.keySet().toArray(new String[JDK_TO_BYTECODE_VERSION_MAP.size()]);
 
-    public static final int ASM_API_VERSION = Opcodes.ASM8;
+    /**
+     * The ASM API version used when loading/parsing classes and generating proxy adapter classes.
+     */
+    public static final int ASM_API_VERSION = Opcodes.ASM9;
 
     @Deprecated
     public static final String CURRENT_JVM_VERSION = JDK7;