[
https://jira.jboss.org/jira/browse/WELD-466?page=com.atlassian.jira.plugi...
]
Pete Muir commented on WELD-466:
--------------------------------
What I meant, was you need to store the declaring bean's creational context into the
AbstractFacade instance (aka the instance of Instance) when the declaring bean is
instantated, and then use it inside Instance.get(). At this point, we then can remove the
one which is currently created for the Instance. This will mean that the dependent
instance are correctly registered and hence destroyed.
I didn't mean to alter the signature of sendEvent, but rather to propagate the
declaring bean's creational context into the EventImpl instance, and then *use* it
inside sendEvent.
Injected dependent Instance<?> aren't registered as
dependents
--------------------------------------------------------------
Key: WELD-466
URL:
https://jira.jboss.org/jira/browse/WELD-466
Project: Weld
Issue Type: Bug
Components: Producers (Methods, Fields and Disposers)
Affects Versions: 1.0.1.Final
Reporter: Nicklas Karlsson
Assignee: Nicklas Karlsson
Fix For: 1.0.2.CR1
If we have
@RequestScoped
public class Foo {
@Inject Instance<Bar> bar;
}
and bar has a dependent scoped producer/disposer pair, the disposer method is never
called when Foo is destroyed since the Instance is not considered a dependent to Foo
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira