Skip to content

BeanDefinition-aware BeanPostProcessors should clear cache in case of bean definition reset [SPR-17126] #21663

@spring-projects-issues

Description

@spring-projects-issues

Timur Strekalov opened SPR-17126 and commented

org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor#findAutowiringMetadata puts metadata into the org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor#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.


Affects: 5.0.8

Issue Links:

Referenced from: commits e64c6df, 28565e2

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions