Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate reflection hints for custom types that SpringConstraintValidatorFactory will instantiate #29395

Closed
wilkinsona opened this issue Oct 28, 2022 · 1 comment
Assignees
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

Comments

@wilkinsona
Copy link
Member

wilkinsona commented Oct 28, 2022

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 custom ConstraintValidator implementation. The annotation is used on a parameter of @GetMapping method. The ConstraintValidator implementation, IdValidator, is created by SpringConstraintValidatorFactory 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.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Oct 28, 2022
@sdeleuze sdeleuze self-assigned this Oct 28, 2022
@sdeleuze sdeleuze added theme: aot An issue related to Ahead-of-time processing type: enhancement A general enhancement in: core Issues in core modules (aop, beans, core, context, expression) and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Oct 28, 2022
@sdeleuze sdeleuze added this to the 6.0.x milestone Oct 28, 2022
@sdeleuze
Copy link
Contributor

Duplicate of #29823.

@sdeleuze sdeleuze closed this as not planned Won't fix, can't repro, duplicate, stale Feb 21, 2023
@sdeleuze sdeleuze removed this from the 6.0.x milestone Feb 21, 2023
@sdeleuze sdeleuze added the status: duplicate A duplicate of another issue label Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

3 participants