From 3c564e5605ef403b77968770c1177f50331a5080 Mon Sep 17 00:00:00 2001
From: cherry530 <xuping33@huawei.com>
Date: Wed, 23 Aug 2023 14:43:15 +0800
Subject: [PATCH] Bump ASM to 8.0.1

Signed-off-by: cherry530 <xuping33@huawei.com>
---
 .../src/main/java/com/carrotsearch/ant/tasks/junit4/JUnit4.java | 2 +-
 pom.xml                                                         | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/junit4-ant/src/main/java/com/carrotsearch/ant/tasks/junit4/JUnit4.java b/junit4-ant/src/main/java/com/carrotsearch/ant/tasks/junit4/JUnit4.java
index 0cc947f..1053231 100644
--- a/junit4-ant/src/main/java/com/carrotsearch/ant/tasks/junit4/JUnit4.java
+++ b/junit4-ant/src/main/java/com/carrotsearch/ant/tasks/junit4/JUnit4.java
@@ -1847,7 +1847,7 @@ public class JUnit4 extends Task {
             final TestClass testClass = new TestClass();
             ClassReader reader = new ClassReader(is);
             @SuppressWarnings("deprecation")
-            ClassVisitor annotationVisitor = new ClassVisitor(Opcodes.ASM9) {
+            ClassVisitor annotationVisitor = new ClassVisitor(Opcodes.ASM8) {
               @Override
               public AnnotationVisitor visitAnnotation(String desc, boolean visible) {
                 String className = Type.getType(desc).getClassName();
diff --git a/pom.xml b/pom.xml
index e6f16ff..1349740 100644
--- a/pom.xml
+++ b/pom.xml
@@ -134,7 +134,7 @@
       <dependency>
         <groupId>org.ow2.asm</groupId>
         <artifactId>asm</artifactId>
-        <version>9.2</version>
+        <version>8.0.1</version>
       </dependency>
 
       <dependency>
-- 
2.27.0

