[
https://issues.jboss.org/browse/WELD-1010?page=com.atlassian.jira.plugin....
]
Ales Justin commented on WELD-1010:
-----------------------------------
The initial issue I see is that CreationalContextImpl passes dependentInstances as a ref
to its child -- from getCreationalContext.
This ref gets then later filled from addDependentInstance invocation on new creational
context instance.
@Pete: the question is (and imo it looks like it is), is this intentional -- passing the
ref instead of deep copy?
@PreDestroy method invoked twice
--------------------------------
Key: WELD-1010
URL:
https://issues.jboss.org/browse/WELD-1010
Project: Weld
Issue Type: Bug
Components: Scopes & Contexts
Affects Versions: 1.1.3.SP1
Environment: All
Reporter: wojtek k
Fix For: 1.2.0.Beta1
@PreDestroy method on @Dependend scope is invoked twice when we use Bean.destroy()
method.
Problem occurs in destroy() method:
getInjectionTarget().preDestroy(instance);
creationalContext.release();
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira