Skip to content

Introduce utility to register hints for an annotation that uses AliasFor #28497

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

Closed
snicoll opened this issue May 20, 2022 · 0 comments
Closed
Assignees
Labels
theme: aot An issue related to Ahead-of-time processing type: enhancement A general enhancement
Milestone

Comments

@snicoll
Copy link
Member

snicoll commented May 20, 2022

The core framework allows the use of @AliasFor which creates a JDK proxy behind the scenes. Registering a reflection hint for the attributes of the annotation is not enough for this to be used at runtime in a native image.

To ease the registration, we'll add a utility that takes care of this logic.

@snicoll snicoll added type: enhancement A general enhancement theme: aot An issue related to Ahead-of-time processing labels May 20, 2022
@snicoll snicoll added this to the 6.0.0-M5 milestone May 20, 2022
@snicoll snicoll self-assigned this May 20, 2022
snicoll added a commit that referenced this issue May 23, 2022
This commit improves registerAnnotation to also registers the meta
annotation sources, if any. Without them, the annotation could not
be fully resolved.

See gh-28497
snicoll added a commit that referenced this issue May 25, 2022
This commit improves registerAnnotation to use the annotation type
rather than a `MergedAnnotation` attribute.

See gh-28497
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