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

Document @AliasFor support in AnnotatedTypeMetadata.getAnnotationAttributes() #31042

Closed
sbrannen opened this issue Aug 12, 2023 · 0 comments
Closed
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: documentation A documentation task
Milestone

Comments

@sbrannen
Copy link
Member

While working on #31041, I encountered a pleasant surprise: AnnotatedTypeMetadata.getAnnotationAttributes() actually supports full @AliasFor semantics.

The Javadoc for getAnnotationAttributes() has historically stated that it supported "attribute overrides on composed annotations"; however, it turns out that it actually supports @AliasFor in general, including attribute aliases within a given annotation.

This is likely a result of the switch to the MergedAnnotations API in Spring Framework 5.2.

We should therefore document that.

@sbrannen sbrannen added type: documentation A documentation task in: core Issues in core modules (aop, beans, core, context, expression) labels Aug 12, 2023
@sbrannen sbrannen added this to the 6.1.0-M4 milestone Aug 12, 2023
@sbrannen sbrannen self-assigned this Aug 12, 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) type: documentation A documentation task
Projects
None yet
Development

No branches or pull requests

1 participant