[
https://jira.jboss.org/jira/browse/CDITCK-142?page=com.atlassian.jira.plu...
]
Pete Muir updated CDITCK-142:
-----------------------------
Component/s: Tests
Fix Version/s: 1.0.2.CR1
1.1.0.CR1
Agreed. For clarity, let me restate the issue.
@Dependent scoped beans injected into a producer method are dependents of the produced
bean, and so should only be destroyed when the produced bean is destroyed.
The test needs altering so that the produced bean is explicitly destroyed.
Bug in DependentContextTest
---------------------------
Key: CDITCK-142
URL:
https://jira.jboss.org/jira/browse/CDITCK-142
Project: CDI TCK
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Tests
Reporter: Gurkan Erdogdu
Fix For: 1.0.2.CR1, 1.1.0.CR1
public void testDependentsDestroyedWhenProducerMethodCompletes(), this tests tests
destroying of dependents when producer methods completes. But specification does not talk
about it. AFAIK, producer methods are also beans and their dependents are destroyed when
bean is destroyed or CreationalContext # release is called.
But test destroys producer bean dependents when method completes. I think this is not
correct.
--
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