-
Bug
-
Resolution: Done
-
Major
-
1.1.0.CR3, 1.1.0.CR4, 1.1.0.Final, 1.1.1.Final
-
None
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.
- duplicates
-
WELD-882 Interceptors do not get applied to super-super-* class' methods.
- Resolved
- is incorporated by
-
WELD-822 WeldClassImpl.getDeclaredMethods() may ignore superclass methods if the hierarchy is deep
- Closed
- relates to
-
WELD-820 When invoking a method that is not intercepted, invocations on this are intercepted/decorated
- Resolved