!564 修复执行任务时,若方法入口在任务的父类,则无法执行的问题

Merge pull request !564 from 捏造的信仰/fix-issue-I5NNXI
duhanyu
若依 2 years ago committed by Gitee
commit 2f380f0c41
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

@ -52,12 +52,12 @@ public class JobInvokeUtil
{ {
if (StringUtils.isNotNull(methodParams) && methodParams.size() > 0) if (StringUtils.isNotNull(methodParams) && methodParams.size() > 0)
{ {
Method method = bean.getClass().getDeclaredMethod(methodName, getMethodParamsType(methodParams)); Method method = bean.getClass().getMethod(methodName, getMethodParamsType(methodParams));
method.invoke(bean, getMethodParamsValue(methodParams)); method.invoke(bean, getMethodParamsValue(methodParams));
} }
else else
{ {
Method method = bean.getClass().getDeclaredMethod(methodName); Method method = bean.getClass().getMethod(methodName);
method.invoke(bean); method.invoke(bean);
} }
} }

Loading…
Cancel
Save