-
Bug
-
Resolution: Done
-
Major
-
1.1.5.Final, 2.0.0.Alpha2
-
None
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