BATCH-2205:
MethodInvokingTaskletAdaper does not support primitive arguments. - Improvement of AbstractMethodInvokingDelegator.targetClassDeclaresTargetMethod()
This commit is contained in:
committed by
Michael Minella
parent
55ca2bc895
commit
834d8ee627
@@ -24,6 +24,7 @@ import java.util.List;
|
||||
|
||||
import org.springframework.beans.factory.InitializingBean;
|
||||
import org.springframework.util.Assert;
|
||||
import org.springframework.util.ClassUtils;
|
||||
import org.springframework.util.MethodInvoker;
|
||||
|
||||
/**
|
||||
@@ -167,7 +168,7 @@ public abstract class AbstractMethodInvokingDelegator<T> implements Initializing
|
||||
if (arguments[j] == null) {
|
||||
continue;
|
||||
}
|
||||
if (!(params[j].isAssignableFrom(arguments[j].getClass()))) {
|
||||
if (!(ClassUtils.isAssignableValue(params[j], arguments[j]))) {
|
||||
argumentsMatchParameters = false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user