-
Couldn't load subscription status.
- 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
James Shaw opened SPR-8229 and commented
When an ApplicationContext is closed, any @Configuration class that was registered in that context does not get garbage collected. If I understand the way class loading works, this is because the ClassLoader still holds a reference to the enhanced Configuration class.
This is a problem for me because I want to create ApplicationContexts at runtime.
Issue Links:
- ConfigurationClassEnhancer prevents BeanFactory from being GCd [SPR-7901] #12556 ConfigurationClassEnhancer prevents BeanFactory from being GCd ("duplicates")
- ConfigurationClassEnhancer prevents BeanFactory from being GCd [SPR-7901] #12556 ConfigurationClassEnhancer prevents BeanFactory from being GCd
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