[arquillian-issues] [JBoss JIRA] Commented: (ARQ-314) CDIInjectionEnricher does not release the creationalContext

Pete Muir (JIRA) jira-events at lists.jboss.org
Mon Oct 11 06:52:39 EDT 2010


    [ https://jira.jboss.org/browse/ARQ-314?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12556282#action_12556282 ] 

Pete Muir commented on ARQ-314:
-------------------------------

Even for non-contextual injection, it is needed really. This probably isn't very clear in the docs, I will try to update.

It would make sense to share the CC for the whole test case, that way you will only have one CC to release -- this will then behave as though the test case was normal scoped, which I think is correct.

> 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

        


More information about the arquillian-issues mailing list