Fix ShellMethod not using context validator
(cherry picked from commit 23194d05e2)
- Backport #493
- Fixes #496
This commit is contained in:
committed by
Janne Valkealahti
parent
f826f29d77
commit
703ffc8ec6
@@ -298,7 +298,6 @@ public class InvocableShellMethod {
|
|||||||
try {
|
try {
|
||||||
if (validator != null) {
|
if (validator != null) {
|
||||||
Method bridgedMethod = getBridgedMethod();
|
Method bridgedMethod = getBridgedMethod();
|
||||||
Validator validator = Utils.defaultValidator();
|
|
||||||
Set<ConstraintViolation<Object>> constraintViolations = validator.forExecutables()
|
Set<ConstraintViolation<Object>> constraintViolations = validator.forExecutables()
|
||||||
.validateParameters(getBean(), bridgedMethod, args);
|
.validateParameters(getBean(), bridgedMethod, args);
|
||||||
if (constraintViolations.size() > 0) {
|
if (constraintViolations.size() > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user