Skip to content

Propagate context to all AnnotationTypeMappings creation sites in TypeMappedAnnotations - #37429

Open
guanchengang wants to merge 1 commit into
spring-projects:mainfrom
guanchengang:fix/type-mapped-annotations-context-propagation
Open

guanchengang wants to merge 1 commit into
spring-projects:mainfrom
guanchengang:fix/type-mapped-annotations-context-propagation

Conversation

@guanchengang

Copy link
Copy Markdown
Contributor

Prior to this commit, IsPresent and Aggregate built AnnotationTypeMappings with default settings, ignoring the configured RepeatableContainers and AnnotationFilter. This caused isPresent(), get(), and stream() to behave inconsistently when custom configurations were used.

This commit passes RepeatableContainers and AnnotationFilter when creating AnnotationTypeMappings in IsPresent and Aggregate.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Oct 9, 2026
@guanchengang
guanchengang force-pushed the fix/type-mapped-annotations-context-propagation branch from 6bab55d to afb86f9 Compare October 9, 2026 05:55
@sbrannen sbrannen added the in: core Issues in core modules (aop, beans, core, context, expression) label Oct 9, 2026
@sbrannen sbrannen self-assigned this Oct 9, 2026
Prior to this commit, `IsPresent` and `Aggregate` built
`AnnotationTypeMappings` with default settings, ignoring the
configured `RepeatableContainers` and `AnnotationFilter`.
This caused `isPresent()`, `get()`, and `stream()` to behave
inconsistently when custom configurations were used.

This commit passes `RepeatableContainers` and `AnnotationFilter`
when creating `AnnotationTypeMappings` in `IsPresent` and
`Aggregate`.

Signed-off-by: Chengang Guan <guanchengang@qq.com>
@guanchengang
guanchengang force-pushed the fix/type-mapped-annotations-context-propagation branch from afb86f9 to c138a63 Compare October 10, 2026 02:49

This branch has not been deployed

No deployments
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: waiting-for-triage An issue we've not yet triaged or decided on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants