Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-2475

Specialized beans remain in memory and corresponding resources cannot be released

    Details

      Description

      A specialized bean is ignored in BeanManagerImpl.addBean() but ContextualStore can hold a reference preventing the objects from being released by GC. Moreover, AbstractClassBean.cleanupAfterBoot() is not invoked for specialized beans (because they were ignored by BeanManagerImpl) and so the corresponding EnhancedAnnotatedType is also kept in memory. As a result, tens of KBs are occupied for each specializaed bean which could never be used in the application.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                mkouba Martin Kouba
                Reporter:
                mkouba Martin Kouba
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: