Status: Resolved (View Workflow)
WELD-568 bridge methods for covariant return types should not be intercepted.
However, bridge methods that have a different signature, e.g. by using generics, should be interceptable.
Consider the following case using generic EJB methods:
For this call the invocation context contains the method signature "SpecialServiceImpl.doSomething(BaseParam)" which is the bridge method generated due to the generic parameter.
However, the method "Beans.getInterceptableMethods(WeldClass)" ignores this method when registering the interceptor because it is a bridge method:
Due to this, calls to bridge methods within EJBs are not intercepted.
Bridge methods are not ignored by default but are replaced by non-bridge methods having the same signature when the interceptable methods are collected. That should solve this issue as well as