Skip to content

Commit

Permalink
fix: update the used Opcode from 7 to 8 (#10979)
Browse files Browse the repository at this point in the history
Update used ClassVisitor ASM version
from 7 to 8 to support Java16 record

Fixes #10870
  • Loading branch information
caalador committed May 14, 2021
1 parent a228eb2 commit 9b11380
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ final class FrontendAnnotatedClassVisitor extends ClassVisitor {
* The annotation class name to visit
*/
FrontendAnnotatedClassVisitor(ClassFinder finder, String annotationName) {
super(Opcodes.ASM7);
super(Opcodes.ASM8);
this.finder = finder;
this.annotationName = annotationName;
if (!annotationDefaults.containsKey(annotationName)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ final class FrontendClassVisitor extends ClassVisitor {

private final class FrontendMethodVisitor extends MethodVisitor {
public FrontendMethodVisitor() {
super(Opcodes.ASM7);
super(Opcodes.ASM8);
}

// We are interested in the new instances created inside the method
Expand Down Expand Up @@ -143,7 +143,7 @@ public void visitInvokeDynamicInsn(String name, String descriptor,
*/
FrontendClassVisitor(String className, EndPointData endPoint,
boolean themeScope) { // NOSONAR
super(Opcodes.ASM7);
super(Opcodes.ASM8);
this.className = className;
this.endPoint = endPoint;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
*/
abstract class RepeatedAnnotationVisitor extends AnnotationVisitor {
RepeatedAnnotationVisitor() {
super(Opcodes.ASM7);
super(Opcodes.ASM8);
}

@Override
Expand Down

0 comments on commit 9b11380

Please sign in to comment.