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, 1.1.0.Final, 1.1.1.Final
Environment: Mac OS X 10.6.5, Java SUN 1.6.0_22, mvn version 3.0.1
Reporter: Tomasz Szymanski
Assignee: Ales Justin
Fix For: 1.2.0.Beta1
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: