[
https://jira.jboss.org/jira/browse/WELD-466?page=com.atlassian.jira.plugi...
]
Pete Muir commented on WELD-466:
--------------------------------
You need to store the creationalContext into the AbstractFacade, when an Instance/Event is
created (and also into the serialization proxy so that this survives replication), and
rather than creating a new creational context in Instance.get(), use the one you stored.
This creationalContext also needs to be propagated ObserverMethodImpl.sendEvent().
You don't have to check if the producer produces a dependent or a non-dep, it's
done automatically inside DependentContext which looks up the dependent instance store
from the cc.
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
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