Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
M3
-
None
Description
Currently, each interceptor beans invocation is separated by calls to Method.invoke() which wraps checked exceptions in InvocationTargetException, but the interceptor spec says downstream interceptors must see the actual exception.
We can pull the cause out of the InvocationTargetException back in InvocationContextImpl.proceeed() and throw the cause instead.
This is needed for e.g. org.jboss.jsr299.tck.interceptors.tests.aroundInvoke.exception