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

Dependent scoped instances injected into observer method parameters are not destroyed for non-dependent reciever

XMLWordPrintable

      Dependent scoped contextual instances injected into method parameters of an observer method are not destroyed when the invocation completes in case of reciever itself is not dependent scoped.

      Problematic code: org.jboss.weld.event.ObserverMethodImpl.sendEvent(T, Object, CreationalContext<?>).

      See also CDI TCK 1.1 test:
      https://github.com/jboss/cdi-tck/blob/master/impl/src/main/java/org/jboss/cdi/tck/tests/context/dependent/instance/BuiltinInstanceDependentObjectTest.java

              rhn-engineering-jharting Jozef Hartinger
              mkouba@redhat.com Martin Kouba
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: