[weld-issues] [JBoss JIRA] Created: (CDITCK-212) DestroyedInstanceReturnedByGetTest assumes that the application scope can be destroyed and then re-created

Stuart Douglas (JIRA) jira-events at lists.jboss.org
Tue May 24 01:05:00 EDT 2011


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