[weld-issues] [JBoss JIRA] Commented: (CDITCK-212) DestroyedInstanceReturnedByGetTest assumes that the application scope can be destroyed and then re-created
Pete Muir (JIRA)
jira-events at lists.jboss.org
Thu Jun 16 14:54:23 EDT 2011
[ https://issues.jboss.org/browse/CDITCK-212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12609306#comment-12609306 ]
Pete Muir commented on CDITCK-212:
----------------------------------
Confirmed and tests excluded.
> DestroyedInstanceReturnedByGetTest assumes that the application scope can be destroyed and then re-created
> ----------------------------------------------------------------------------------------------------------
>
> Key: CDITCK-212
> URL: https://issues.jboss.org/browse/CDITCK-212
> Project: CDI TCK
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Reporter: Stuart Douglas
>
> Context applicationContext = getCurrentManager().getContext(ApplicationScoped.class);
> destroyContext(applicationContext);
> setContextActive(applicationContext);
> myApplicationBeanInstance = applicationContext.get(myApplicationBean);
> The spec does not require that the application scope can be destroyed and re-created, if fact it could be argued that this behaviour violates the spec, as the application context is supposed to last for the lifetime of the application.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the weld-issues
mailing list