As of Bean Validation 1.1 / Hibernate Validator 5.x, constraints can also be placed on method or constructor parameters. The parameter name is then part of the resulting ConstraintViolation to provide information about the affected constraint. By default, the names arg0, arg1 etc. are used, but Bean Validation defines an SPI for plugging in custom ParameterNameProvider implementations.
The idea of this sub-task is to implement this SPI using the reflective access to parameter names in Java 8.
|