Make ConstraintValidator declaration stricter

Description

Currently, it's possible to register a constraint validator for an annotation (via @Constraint(validatedBy=)) even if the ConstraintValidator is defined for another constraint annotation (in the implements ConstraintValidator<Constraint, ValidatedType> part).

It would likely fail at runtime but we should throw an error when bootstrapping the constraint.

Environment

None

Activity

Fixed

Details

Assignee

Reporter

Participants

Guillaume Smet

Pull Request

Components

Fix versions

Priority

Created March 19, 2018 at 4:22 PM
Updated May 15, 2018 at 11:06 AM
Resolved May 4, 2018 at 11:05 AM