Skip to content

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

Closed

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:

Activity

  1. spring-projects-issues commented on May 30, 2011

    @spring-projects-issues
    CollaboratorAuthor

    Chris Beams commented

    James,

    This looks like a duplicate of #12556 which, while just recently resolved in JIRA, has actually been fixed in 3.1 snapshot builds for quite some time. Resolving as a duplicate for now, but please reopen if you continue to see the behavior after syncing up to the latest snapshots (or 3.1 M2 when it's released).

  2. added
    type: bug
    in: core
    status: duplicate
    and removed
    type: bug
    on Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: corestatus: duplicate

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions