From acf04523b01489645eb441a9248c48838095aa70 Mon Sep 17 00:00:00 2001
From: Dawid Weiss <dawid.weiss@carrotsearch.com>
Date: Tue, 7 Jul 2020 16:43:12 +0200
Subject: [PATCH] GH-289: Bump asm to 8.0.1.

---
 CHANGES.txt                                                     | 2 ++
 .../src/main/java/com/carrotsearch/ant/tasks/junit4/JUnit4.java | 2 +-
 pom.xml                                                         | 2 +-
 3 files changed, 4 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 be7c94e3..f4b3e833 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
@@ -1835,7 +1835,7 @@ private TestsCollection processTestResources() {
             final TestClass testClass = new TestClass();
             ClassReader reader = new ClassReader(is);
             @SuppressWarnings("deprecation")
-            ClassVisitor annotationVisitor = new ClassVisitor(Opcodes.ASM7_EXPERIMENTAL) {
+            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 a1664789..1a921e72 100644
--- a/pom.xml
+++ b/pom.xml
@@ -134,7 +134,7 @@
       <dependency>
         <groupId>org.ow2.asm</groupId>
         <artifactId>asm</artifactId>
-        <version>6.2.1</version>
+        <version>8.0.1</version>
       </dependency>
 
       <dependency>
