[cdi-dev] [JBoss JIRA] (CDI-424) Add validation of contextuals passed to a context object for a passivating scope

Martin Kouba (JIRA) issues at jboss.org
Wed Mar 5 09:47:36 EST 2014


Martin Kouba created CDI-424:
--------------------------------

             Summary: Add validation of contextuals passed to a context object for a passivating scope
                 Key: CDI-424
                 URL: https://issues.jboss.org/browse/CDI-424
             Project: CDI Specification Issues
          Issue Type: Clarification
            Reporter: Martin Kouba


6.6.1 Passivation capable beans:
{quote}
An implementation of Contextual that is not a bean is passivation capable if it implements both PassivationCapable and Serializable.
{quote}
6.6.4 Passivating scopes
{quote}
A passivating scope requires that implementations of Contextual passed to any context object for the scope are passivation capable.
{quote}

Theoretically an implementation of Contextual that is not a bean may be passed to a context object of a passivating scope (e.g. @SessionScoped). The spec should specify what happens then. Apparently the container should detect the problem and treat it as a deployment problem. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the cdi-dev mailing list