[weld-issues] [JBoss JIRA] Commented: (CDITCK-183) DestroyedInstanceReturnedByGetTest seems broken

Pete Muir (JIRA) jira-events at lists.jboss.org
Thu Sep 30 13:05:40 EDT 2010


    [ https://jira.jboss.org/browse/CDITCK-183?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12554429#action_12554429 ] 

Pete Muir commented on CDITCK-183:
----------------------------------

Confirmed, and exclude list updated.

> DestroyedInstanceReturnedByGetTest seems broken
> -----------------------------------------------
>
>                 Key: CDITCK-183
>                 URL: https://jira.jboss.org/browse/CDITCK-183
>             Project: CDI TCK
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Tests
>    Affects Versions: 1.0.2.CR2
>            Reporter: Mark Struberg
>
> DestroyedInstanceReturnedByGetTest currently calls 
> {noformat}
>       destroyContext(getCurrentManager().getContext(SessionScoped.class));
>       setContextActive(getCurrentManager().getContext(SessionScoped.class));
> {noformat}
> The problem is that destroying the SessionContext will render it inactive. So the getContext() call in the following line will throw a ContextNotActiveException according to the spec 6.5.1: "If no active context object exists for the scope type, the container throws a ContextNotActiveException."

-- 
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 weld-issues mailing list