[maven-plugin-tools] branch master updated: [MPLUGIN-369] - Upgrade ASM Api version to ASM9 in visitors - in sync with the current ASM version.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[maven-plugin-tools] branch master updated: [MPLUGIN-369] - Upgrade ASM Api version to ASM9 in visitors - in sync with the current ASM version.

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

slachiewicz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-plugin-tools.git


The following commit(s) were added to refs/heads/master by this push:
     new 2f29e9a  [MPLUGIN-369] - Upgrade ASM Api version to ASM9 in visitors - in sync with the current ASM version.
2f29e9a is described below

commit 2f29e9a3822a3eba50bd921f111ffce1f8182f54
Author: Alex Shesterov <[hidden email]>
AuthorDate: Sun Nov 22 12:34:52 2020 +0100

    [MPLUGIN-369] - Upgrade ASM Api version to ASM9 in visitors - in sync with the current ASM version.
   
    This fixes the "Record requires ASM8" problem when Records are used in a Mojo.
   
    This closes #32
---
 .../extractor/annotations/scanner/visitors/MojoAnnotationVisitor.java   | 2 +-
 .../plugin/extractor/annotations/scanner/visitors/MojoClassVisitor.java | 2 +-
 .../plugin/extractor/annotations/scanner/visitors/MojoFieldVisitor.java | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/maven-plugin-tools-annotations/src/main/java/org/apache/maven/tools/plugin/extractor/annotations/scanner/visitors/MojoAnnotationVisitor.java b/maven-plugin-tools-annotations/src/main/java/org/apache/maven/tools/plugin/extractor/annotations/scanner/visitors/MojoAnnotationVisitor.java
index 2199de5..3977ed2 100644
--- a/maven-plugin-tools-annotations/src/main/java/org/apache/maven/tools/plugin/extractor/annotations/scanner/visitors/MojoAnnotationVisitor.java
+++ b/maven-plugin-tools-annotations/src/main/java/org/apache/maven/tools/plugin/extractor/annotations/scanner/visitors/MojoAnnotationVisitor.java
@@ -41,7 +41,7 @@ public class MojoAnnotationVisitor
 
     MojoAnnotationVisitor( Logger logger, String annotationClassName )
     {
-        super( Opcodes.ASM7 );
+        super( Opcodes.ASM9 );
         this.logger = logger;
         this.annotationClassName = annotationClassName;
     }
diff --git a/maven-plugin-tools-annotations/src/main/java/org/apache/maven/tools/plugin/extractor/annotations/scanner/visitors/MojoClassVisitor.java b/maven-plugin-tools-annotations/src/main/java/org/apache/maven/tools/plugin/extractor/annotations/scanner/visitors/MojoClassVisitor.java
index 2191a47..2f3cf30 100644
--- a/maven-plugin-tools-annotations/src/main/java/org/apache/maven/tools/plugin/extractor/annotations/scanner/visitors/MojoClassVisitor.java
+++ b/maven-plugin-tools-annotations/src/main/java/org/apache/maven/tools/plugin/extractor/annotations/scanner/visitors/MojoClassVisitor.java
@@ -53,7 +53,7 @@ public class MojoClassVisitor
 
     public MojoClassVisitor( Logger logger )
     {
-        super( Opcodes.ASM7 );
+        super( Opcodes.ASM9 );
         this.logger = logger;
     }
 
diff --git a/maven-plugin-tools-annotations/src/main/java/org/apache/maven/tools/plugin/extractor/annotations/scanner/visitors/MojoFieldVisitor.java b/maven-plugin-tools-annotations/src/main/java/org/apache/maven/tools/plugin/extractor/annotations/scanner/visitors/MojoFieldVisitor.java
index 80afcb6..225478b 100644
--- a/maven-plugin-tools-annotations/src/main/java/org/apache/maven/tools/plugin/extractor/annotations/scanner/visitors/MojoFieldVisitor.java
+++ b/maven-plugin-tools-annotations/src/main/java/org/apache/maven/tools/plugin/extractor/annotations/scanner/visitors/MojoFieldVisitor.java
@@ -44,7 +44,7 @@ public class MojoFieldVisitor
 
     MojoFieldVisitor( Logger logger, String fieldName, String className )
     {
-        super( Opcodes.ASM7 );
+        super( Opcodes.ASM9 );
         this.logger = logger;
         this.fieldName = fieldName;
         this.className = className;