Skip to content

CGLIB enhanced @Configuration classes cannot be garbage collected [SPR-8229] #12878

Closed
@spring-projects-issues

Description

@spring-projects-issues

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: coreIssues in core modules (aop, beans, core, context, expression)status: duplicateA duplicate of another issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions