diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/main/java/io/quarkus/resteasy/reactive/server/deployment/ClassInjectorTransformer.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/main/java/io/quarkus/resteasy/reactive/server/deployment/ClassInjectorTransformer.java index ba0925a3f0643..8fa2ef6742dc5 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/main/java/io/quarkus/resteasy/reactive/server/deployment/ClassInjectorTransformer.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/main/java/io/quarkus/resteasy/reactive/server/deployment/ClassInjectorTransformer.java @@ -28,6 +28,7 @@ import org.objectweb.asm.Type; import io.quarkus.deployment.util.AsmUtil; +import io.quarkus.gizmo.Gizmo; public class ClassInjectorTransformer implements BiFunction { @@ -67,7 +68,7 @@ public ClassInjectorTransformer(Map fieldExtr @Override public ClassVisitor apply(String classname, ClassVisitor visitor) { - return new ClassInjectorVisitor(Opcodes.ASM8, visitor, fieldExtractors, superTypeIsInjectable); + return new ClassInjectorVisitor(Gizmo.ASM_API_VERSION, visitor, fieldExtractors, superTypeIsInjectable); } static class ClassInjectorVisitor extends ClassVisitor { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/main/java/io/quarkus/resteasy/reactive/server/deployment/MultipartTransformer.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/main/java/io/quarkus/resteasy/reactive/server/deployment/MultipartTransformer.java index 56a1054e7fffa..461d0068d2be9 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/main/java/io/quarkus/resteasy/reactive/server/deployment/MultipartTransformer.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/main/java/io/quarkus/resteasy/reactive/server/deployment/MultipartTransformer.java @@ -9,6 +9,8 @@ import org.objectweb.asm.MethodVisitor; import org.objectweb.asm.Opcodes; +import io.quarkus.gizmo.Gizmo; + class MultipartTransformer implements BiFunction { private static final String INJECTION_TARGET_BINARY_NAME = ResteasyReactiveInjectionTarget.class.getName() @@ -28,7 +30,7 @@ public MultipartTransformer(String populatorName) { @Override public ClassVisitor apply(String s, ClassVisitor visitor) { - return new MultipartClassVisitor(Opcodes.ASM8, visitor, populatorName); + return new MultipartClassVisitor(Gizmo.ASM_API_VERSION, visitor, populatorName); } static class MultipartClassVisitor extends ClassVisitor { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/IllegalClassExceptionMapper.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/IllegalClassExceptionMapper.java index 53603b301a014..9948f486809a3 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/IllegalClassExceptionMapper.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/IllegalClassExceptionMapper.java @@ -13,12 +13,13 @@ import org.objectweb.asm.ClassReader; import org.objectweb.asm.ClassVisitor; import org.objectweb.asm.MethodVisitor; -import org.objectweb.asm.Opcodes; import org.objectweb.asm.util.Printer; import org.objectweb.asm.util.Textifier; import org.objectweb.asm.util.TraceClassVisitor; import org.objectweb.asm.util.TraceMethodVisitor; +import io.quarkus.gizmo.Gizmo; + @Provider public class IllegalClassExceptionMapper implements ExceptionMapper { @@ -29,7 +30,7 @@ public static class MethodFindingClassVisitor extends ClassVisitor { private PrintWriter writer; public MethodFindingClassVisitor(String method, PrintWriter writer) { - super(Opcodes.ASM8); + super(Gizmo.ASM_API_VERSION); this.method = method; this.writer = writer; textifier = new Textifier();