- 
                Notifications
    You must be signed in to change notification settings 
- Fork 38.8k
Closed
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)status: duplicateA duplicate of another issueA duplicate of another issue
Description
Timur Strekalov opened SPR-17127 and commented
org.springframework.context.annotation.CommonAnnotationBeanPostProcessor#findResourceMetadata puts metadata into the org.springframework.context.annotation.CommonAnnotationBeanPostProcessor#injectionMetadataCache, but nothing ever cleans it, leading to a memory leak in case bean definitions for beans with different names get added and removed. This is particularly visible when using Spring Integration's dynamic flows.
Note that this issue could be considered a duplicate of #21663, since the code for findResourceMetadata and findAutowiringMetadata is exactly the same, but I figured I'd report two separate issues anyway.
Affects: 5.0.8
Issue Links:
- BeanDefinition-aware BeanPostProcessors should clear cache in case of bean definition reset [SPR-17126] #21663 BeanDefinition-aware BeanPostProcessors should clear cache in case of bean definition reset ("duplicates")
Metadata
Metadata
Assignees
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)status: duplicateA duplicate of another issueA duplicate of another issue