|
|
|
@Valid constraints in an XML constraint file lead to a RuntimeException with the following message: {noformat} "HV000086: Trying to instantiate interface javax.validation.Valid with unknown parameter(s): [payload, groups]". {noformat} This is obviously because @Valid does not define payload and groups.
I tried to work around this by specifying empty payload and groups elements in the constraint, but this leads to the following Exception: {noformat} javax.validation.ValidationException: HV000107: Annotation of type javax.validation.Valid does not contain a parameter payload. {noformat} The problem seems to be that {{ MetaConstraintsBuilder.buildMetaConstraints }} adds payload and groups parameters to the {{ AnnotationDescriptor }} without checking first that the Annotation defines these attributes.
|
|
|
|