HHH-13833 Replace OpCodes.ASM5 with OpCodes.ASM7 in the Byte Buddy enhancer

This commit is contained in:
Gwenneg Lepage 2020-01-29 01:05:14 +01:00 committed by Sanne Grinovero
parent 252ca9e98b
commit a4ba766620
3 changed files with 3 additions and 3 deletions

View File

@ -296,7 +296,7 @@ final class BiDirectionalAssociationHandler implements Implementation {
@Override
public Size apply(
MethodVisitor methodVisitor, Context implementationContext, MethodDescription instrumentedMethod) {
return delegate.apply( new MethodVisitor( Opcodes.ASM5, methodVisitor ) {
return delegate.apply( new MethodVisitor( Opcodes.ASM7, methodVisitor ) {
@Override
public void visitMethodInsn(int opcode, String owner, String name, String desc, boolean itf) {

View File

@ -54,7 +54,7 @@ final class FieldAccessEnhancer implements AsmVisitorWrapper.ForDeclaredMethods.
TypePool typePool,
int writerFlags,
int readerFlags) {
return new MethodVisitor( Opcodes.ASM5, methodVisitor ) {
return new MethodVisitor( Opcodes.ASM7, methodVisitor ) {
@Override
public void visitFieldInsn(int opcode, String owner, String name, String desc) {
if ( opcode != Opcodes.GETFIELD && opcode != Opcodes.PUTFIELD ) {

View File

@ -134,7 +134,7 @@ final class PersistentAttributeTransformer implements AsmVisitorWrapper.ForDecla
TypePool typePool,
int writerFlags,
int readerFlags) {
return new MethodVisitor( Opcodes.ASM5, methodVisitor ) {
return new MethodVisitor( Opcodes.ASM7, methodVisitor ) {
@Override
public void visitFieldInsn(int opcode, String owner, String name, String desc) {
if ( isEnhanced( owner, name, desc ) ) {