Generate reflection hints for custom types that SpringConstraintValidatorFactory will instantiate #29395
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: duplicate
A duplicate of another issue
theme: aot
An issue related to Ahead-of-time processing
type: enhancement
A general enhancement
Affects: 6.0
This Spring Boot issue contains a sample application that's using Framework's
@Validated
and a custom constraint annotation that references a customConstraintValidator
implementation. The annotation is used on a parameter of@GetMapping
method. TheConstraintValidator
implementation,IdValidator
, is created bySpringConstraintValidatorFactory
and this fails as it uses reflection.It feels to me like Framework should be able to generate the necessary reflection hint automatically by following the trail of
@Validated
->@Id
->IdValidator
.The text was updated successfully, but these errors were encountered: