@Valid constraints in an XML constraint file lead to a RuntimeException with the following message: "HV000086: Trying to instantiate interface javax.validation.Valid with unknown parameter(s): [payload, groups]". 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: javax.validation.ValidationException: HV000107: Annotation of type javax.validation.Valid does not contain a parameter payload.
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.
|