Skip to content

Commit

Permalink
Fix #291
Browse files Browse the repository at this point in the history
  • Loading branch information
NichtStudioCode committed Oct 12, 2023
1 parent 95b9b7b commit 8dfc600
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ internal sealed interface Transformer {
}

fun MethodNode.delegateStatic(other: Method) {
delegateStatic(other.declaringClass.internalName, VirtualClassPath[other])
delegateStatic(other.declaringClass.internalName, VirtualClassPath[other], other.declaringClass.isInterface)
}

fun MethodNode.delegateStatic(owner: String, other: MethodNode) {
fun MethodNode.delegateStatic(owner: String, other: MethodNode, isInterface: Boolean) {
clear()
instructions = AsmUtils.createDelegateInstructions(
InsnList(),
buildInsnList { invokeStatic(owner, other.name, other.desc, false) },
buildInsnList { invokeStatic(owner, other.name, other.desc, isInterface) },
other,
0
)
Expand Down

0 comments on commit 8dfc600

Please sign in to comment.