]> source.dussan.org Git - javassist.git/commit
[bugfix]fix TransformCallToStatic with invokeinterface or invokedynamic
authorcatsalty <23442547+catsalty@users.noreply.github.com>
Thu, 25 Jul 2024 11:16:23 +0000 (19:16 +0800)
committerGitHub <noreply@github.com>
Thu, 25 Jul 2024 11:16:23 +0000 (19:16 +0800)
commit6722b966e685afb225b7372e771672d1d392c333
treef9a0a1000ee66c555f42792166a460aacd7c56a4
parent4c998e0e31b08b63eb04ac8e374c85d973e6bb09
[bugfix]fix TransformCallToStatic with invokeinterface or invokedynamic

Replacing invokeinterface or invokedynamic with invokestatic will result in a missing instruction. This solution can fix the problem.
Reference document:
https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-6.html#jvms-6.5.invokestatic
https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-6.html#jvms-6.5.invokedynamic
https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-6.html#jvms-6.5.invokeinterface
src/main/javassist/convert/TransformCallToStatic.java