提交 618b014b 编写于 作者: S Skylot

fix: rename method wrapped by synthetic only from same class (#430)

上级 7c353a6c
......@@ -221,6 +221,10 @@ public class ClassModifier extends AbstractVisitor {
if (callMth.getArgsCount() != mth.getMethodInfo().getArgsCount()) {
return false;
}
// rename method only from current class
if (!mth.getParentClass().equals(wrappedMth.getParentClass())) {
return false;
}
// all args must be registers passed from method args (allow only casts insns)
for (InsnArg arg : insn.getArguments()) {
if (!registersAndCastsOnly(arg)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册