[weld-issues] [JBoss JIRA] Commented: (WELD-265) Add logic checking if interceptors and decorators are passivation capable to ManagedBean.initPassivationCapable

Marius Bogoevici (JIRA) jira-events at lists.jboss.org
Mon Nov 9 06:15:21 EST 2009


    [ https://jira.jboss.org/jira/browse/WELD-265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12493748#action_12493748 ] 

Marius Bogoevici commented on WELD-265:
---------------------------------------

I tried to add it, but I got a passivation test failing: org.jboss.jsr299.tck.tests.context.passivating.broken.interceptorWithNonPassivatingInjectedField

And that is because the Bean is not passivating anymore. Somehow, checkType did not validate passivability correctly (just checks that the class is serializable, which is wrong), I made the changes on AbstractClassBean and ManagedBean to push the checks late in the process.

One outcome of this change is that PassivationCapableBeanWithNonPassivatingInterceptorTest is broken now, as the type check on the bean throws a DefinitionError. We need to couple this with WELD-272 and WELD-274 and make sure that validation (and DeploymentExceptions) take place in the validator.

> Add logic checking if interceptors and decorators are passivation capable to ManagedBean.initPassivationCapable
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: WELD-265
>                 URL: https://jira.jboss.org/jira/browse/WELD-265
>             Project: Weld
>          Issue Type: Feature Request
>          Components: Class Beans (Managed and Session), Interceptors and Decorators
>    Affects Versions: 1.0.0.CR1
>            Reporter: Pete Muir
>            Assignee: Marius Bogoevici
>             Fix For: 1.0.0.GA
>
>
> We need to know this when we validate injection points.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the weld-issues mailing list