|
|
|
@ -160,6 +160,7 @@ public class VMCore { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
try { |
|
|
|
|
Method[] declaredMethods = aClass.getDeclaredMethods(); |
|
|
|
|
for (Method declaredMethod : declaredMethods) { |
|
|
|
|
if (declaredMethod.getName().equals(methodName)) { |
|
|
|
@ -171,6 +172,18 @@ public class VMCore { |
|
|
|
|
} |
|
|
|
|
} catch (Throwable ignored) { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Method[] declaredMethods = aClass.getMethods(); |
|
|
|
|
for (Method declaredMethod : declaredMethods) { |
|
|
|
|
if (declaredMethod.getName().equals(methodName)) { |
|
|
|
|
String desc = MethodUtils.getDesc(declaredMethod); |
|
|
|
|
if (desc.equals(signature)) { |
|
|
|
|
return declaredMethod; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} catch (Throwable ignored) { |
|
|
|
|
} |
|
|
|
|
return null; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|