[bv-dev] Apparent TCK misuse of ValidationTarget.PARAMETERS

Matt Benson mbenson at apache.org
Fri Mar 30 11:51:23 EDT 2018


Consider test ValidationInterceptorPriorityTest#testValidationInterceptorHasPriority4800():

The example validates that the parameter to
CalendarService#createEvent(String) satisfies @CustomConstraint.
However, the sole validator declared for @CustomConstraint,
CustomConstraintValidator, is marked as supporting
ValidationTarget.PARAMETERS . In turn, the spec and Javadoc clearly
indicate that ValidationTarget.PARAMETERS indicates cross-parameter
validation. I think this one would be satisfied either by simply
removing @SupportedValidationTarget from the CV impl, or by adding
ANNOTATED_ELEMENT.

Thanks,
Matt


More information about the beanvalidation-dev mailing list