aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorShigeru Chiba <chibash@users.noreply.github.com>2024-07-26 19:29:07 +0900
committerGitHub <noreply@github.com>2024-07-26 19:29:07 +0900
commitb4fb221e58ef33293fbf272d32184b4caa1daacf (patch)
treef9a0a1000ee66c555f42792166a460aacd7c56a4 /src
parent4c998e0e31b08b63eb04ac8e374c85d973e6bb09 (diff)
parent15941254cdf4e2174076932c8b2151db63c5eaf7 (diff)
downloadjavassist-b4fb221e58ef33293fbf272d32184b4caa1daacf.tar.gz
javassist-b4fb221e58ef33293fbf272d32184b4caa1daacf.zip
Merge pull request #486 from catsalty/master
[bugfix]fix TransformCallToStatic with invokeinterface or invokedynamic
Diffstat (limited to 'src')
-rw-r--r--src/main/javassist/convert/TransformCallToStatic.java3
1 files changed, 3 insertions, 0 deletions
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 @@ public class TransformCallToStatic extends TransformCall {
}
iterator.writeByte(Opcode.INVOKESTATIC, pos);
iterator.write16bit(newIndex, pos + 1);
+ if (c == Opcode.INVOKEINTERFACE || c == Opcode.INVOKEDYNAMIC) {
+ iterator.writeByte(0, pos + 3);
+ }
return pos;
}
}