Skip to content

Commit

Permalink
Address #108 (comment).
Browse files Browse the repository at this point in the history
  • Loading branch information
khatchad committed Dec 1, 2023
1 parent cc21eb9 commit ec7b354
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
import java.util.Map;

public class PythonTrampolineTargetSelector<T> implements MethodTargetSelector {
private static final String CALL = "__call__";

private static final String CALLABLE_METHOD_NAME = "__call__";

private final MethodTargetSelector base;

Expand Down Expand Up @@ -164,7 +165,7 @@ private IClass getCallable(CGNode caller, IClassHierarchy cha, PythonInvokeInstr
final String packageName = "$" + declaringClassName.toString().substring(1);
TypeReference typeReference =
TypeReference.findOrCreateClass(
declaringClass.getClassLoader().getReference(), packageName, CALL);
declaringClass.getClassLoader().getReference(), packageName, CALLABLE_METHOD_NAME);
IClass lookupClass = cha.lookupClass(typeReference);

if (lookupClass != null) return lookupClass;
Expand Down

0 comments on commit ec7b354

Please sign in to comment.