diff --git a/src/main/javassist/convert/TransformCallToStatic.java b/src/main/javassist/convert/TransformCallToStatic.java index 6f1dfef3..a7b435d7 100644 --- a/src/main/javassist/convert/TransformCallToStatic.java +++ b/src/main/javassist/convert/TransformCallToStatic.java @@ -23,6 +23,9 @@ protected int match(int c, int pos, CodeIterator iterator, int typedesc, ConstPo } iterator.writeByte(Opcode.INVOKESTATIC, pos); iterator.write16bit(newIndex, pos + 1); + if (c == Opcode.INVOKEINTERFACE || c == Opcode.INVOKEDYNAMIC) { + iterator.writeByte(0, pos + 3); + } return pos; } }