|
Changing the type parameter from Object[] to Object in CrossParameterConstraintValidator seems to do the trick. However, the issue still applies for the case when Object[] type parameter is used. As mentioned in cross-parameter constraint documentation: The type parameter T from the ConstraintValidator interface must resolve to either Object or Object[] in order to receive the array of method/constructor arguments in the isValid() method.
|