[
https://jira.jboss.org/browse/ARQ-314?page=com.atlassian.jira.plugin.syst...
]
Aslak Knutsen commented on ARQ-314:
-----------------------------------
The CDIInjectionEnricher use non-contextual injection. For some reason I have in the back
of my head that release was not needed for a non-contextual context... but.. can't
really find anything that matches that statement in the spec so.. :)
We need to open up for TestEnricher.destory(Object testCase), and TestEnricher.enrich need
to keep track of the CreationalContexts it has created i guess..
We currently create a new non-contextual context pr injection point found, should we share
and reuse the same context for a whole TestCase ?
CDIInjectionEnricher does not release the creationalContext
-----------------------------------------------------------
Key: ARQ-314
URL:
https://jira.jboss.org/browse/ARQ-314
Project: Arquillian
Issue Type: Bug
Components: Weld Containers
Affects Versions: 1.0.0.Alpha4
Reporter: Pete Muir
In order for Weld to properly clean up injected dependent objects (such as calling the
@PreDestroy or @Disposes method), it is important that creationalContext.release() is
called when the scope of the test ends.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira