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

Register native hints for jakarta.inject annotations #28614

Closed
bclozel opened this issue Jun 13, 2022 · 0 comments
Closed

Register native hints for jakarta.inject annotations #28614

bclozel opened this issue Jun 13, 2022 · 0 comments
Assignees
Labels
theme: aot An issue related to Ahead-of-time processing type: enhancement A general enhancement
Milestone

Comments

@bclozel
Copy link
Member

bclozel commented Jun 13, 2022

As of #28442, core Spring annotations are registered for native hints, including @Order and @AliasFor.

Spring optionally supports jakarta.inject.Inject and jakarta.inject.Qualifier, detecting their presence on the classpath. We should ensure that similar hints are registered if they are present on the classpath during the AOT phase.

@bclozel bclozel added type: enhancement A general enhancement theme: aot An issue related to Ahead-of-time processing labels Jun 13, 2022
@bclozel bclozel added this to the 6.0.0-M5 milestone Jun 13, 2022
@bclozel bclozel self-assigned this Jun 13, 2022
@bclozel bclozel changed the title Register native hints fr jakarta.inject annotations Register native hints for jakarta.inject annotations Jun 13, 2022
bclozel added a commit that referenced this issue Jun 14, 2022
Move hints registration to spring-beans, where the actual behavior is
implemented. We chose not to move this to
`AutowiredAnnotationBeanPostProcessor` for now, as this would require it
to implement another AOT-related interface and add too much noise for
this.

See gh-28614
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme: aot An issue related to Ahead-of-time processing type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant