add MethodReflect

This commit is contained in:
Looly
2024-05-14 17:37:38 +08:00
parent d4bb369443
commit a1f23fc22c
6 changed files with 366 additions and 246 deletions

View File

@@ -63,7 +63,7 @@ public class InvokeTask implements Task{
if(StrUtil.isBlank(methodName)) {
throw new IllegalArgumentException("Method name is blank !");
}
this.method = MethodUtil.getPublicMethod(clazz, methodName);
this.method = MethodUtil.getPublicMethod(clazz, false, methodName);
if(null == this.method) {
throw new IllegalArgumentException("No method with name of [" + methodName + "] !");
}