Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit d724c94

Browse files
committed
Fix targets of static calls
1 parent 354ddbf commit d724c94

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

decompiler/src/main/scala/org/ucombinator/jade/decompile/DecompileInsn.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,7 @@ object DecompileInsn extends Log {
102102
}
103103
def staticCall(node: AbstractInsnNode): DecompiledInsn = {
104104
val (insn, argumentTypes, typeArguments) = call(node)
105-
val scope = new FieldAccessExpr(Descriptor.classNameExpr(insn.owner), /*TODO*/ new NodeList(), new SimpleName(insn.name))
106-
DecompiledExpression(new MethodCallExpr(scope, typeArguments, insn.name, new NodeList(argumentTypes.indices.map(args): _*)))
105+
DecompiledExpression(new MethodCallExpr(Descriptor.classNameExpr(insn.owner), typeArguments, insn.name, new NodeList(argumentTypes.indices.map(args): _*)))
107106
}
108107
(
109108
retVar,

0 commit comments

Comments
 (0)