Seeing something weird with invokestatic methods on non static methods?
This commit is contained in:
@@ -51,7 +51,7 @@ public class InvokeStatic extends Instruction implements InvokeInstruction
|
||||
if (otherClass == null)
|
||||
return new ArrayList<>(); // not our class
|
||||
|
||||
info.sigterm.deob.Method other = otherClass.findMethodDeep(method.getNameAndType());
|
||||
info.sigterm.deob.Method other = otherClass.findMethodDeepStatic(method.getNameAndType());
|
||||
assert other != null;
|
||||
|
||||
List<info.sigterm.deob.Method> list = new ArrayList<>();
|
||||
@@ -180,7 +180,8 @@ public class InvokeStatic extends Instruction implements InvokeInstruction
|
||||
if (otherClass == null)
|
||||
return; // not our class
|
||||
|
||||
info.sigterm.deob.Method other = otherClass.findMethodDeep(method.getNameAndType());
|
||||
info.sigterm.deob.Method other = otherClass.findMethodDeepStatic(method.getNameAndType());
|
||||
assert other.isStatic();
|
||||
|
||||
if (other.equals(m))
|
||||
method = new Method(method.getClassEntry(), new NameAndType(name, method.getNameAndType().getDescriptor()));
|
||||
|
||||
Reference in New Issue
Block a user