Commit 618b014b authored by Skylot's avatar Skylot

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

parent 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% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment