[weld-issues] [JBoss JIRA] Resolved: (WELD-818) Interceptors won't work on base beans if there's at least double inheritance

Marius Bogoevici (JIRA) jira-events at lists.jboss.org
Tue Jan 11 17:09:49 EST 2011


     [ https://issues.jboss.org/browse/WELD-818?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marius Bogoevici resolved WELD-818.
-----------------------------------

    Resolution: Done


https://github.com/weld/core/pull/100

> Interceptors won't work on base beans if there's at least double inheritance
> ----------------------------------------------------------------------------
>
>                 Key: WELD-818
>                 URL: https://issues.jboss.org/browse/WELD-818
>             Project: Weld
>          Issue Type: Bug
>          Components: Interceptors and Decorators
>    Affects Versions: 1.1.0.CR3, 1.1.0.CR4
>         Environment: Mac OS X 10.6.5, Java SUN 1.6.0_22, mvn version 3.0.1
>            Reporter: Tomasz Szymanski
>            Assignee: Marius Bogoevici
>         Attachments: weld-interceptors.tgz
>
>
> Imagine you have an abstract BaseBean that is extended by abstract MiddleBean that is extended by the ImplementingBean.
> ImplementingBean is annotated with @Interceptable that is an Interceptor binding for TestInterceptor. Now calling any of the methods from any of those classes on an ImplementingBean should invoke the interceptor.
> The result is that the methods from MiddleBean and ImplementingBean are intercepted, while methods from BaseBean are not (!). If the BaseBean calls any method from either MiddleBean or ImplementingBean the call *will* get intercepted.
> If there's only one inheritance, it will work well. For 2 and more, only the parent of ImplementingBean gets intercepted.
> Please check the attached arquillian test.

-- 
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