Uploaded image for project: 'OpenWebBeans'
  1. OpenWebBeans
  2. OWB-305

exceptions become InvocationTargetException when propogated up interceptor stack

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • M3
    • M4
    • 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

      Attachments

        Activity

          People

            covener Eric Covener
            covener Eric Covener
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 4h
                4h
                Remaining:
                Remaining Estimate - 4h
                4h
                Logged:
                Time Spent - Not Specified
                Not Specified