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

    Details

      Description

      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

        Gliffy Diagrams

          Attachments

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: