Seeing something weird with invokestatic methods on non static methods?

This commit is contained in:
Adam
2015-07-26 21:36:19 -04:00
parent 35fcfc0645
commit fda37792ff
3 changed files with 18 additions and 7 deletions

View File

@@ -175,6 +175,19 @@ public class ClassFile
return null;
}
public Method findMethodDeepStatic(NameAndType nat)
{
Method m = methods.findMethod(nat);
if (m != null && m.isStatic())
return m;
ClassFile parent = getParent();
if (parent != null)
return parent.findMethodDeep(nat);
return null;
}
public Method findMethod(NameAndType nat)
{
return methods.findMethod(nat);