Around-Invoke interceptors should not wrap RuntimeException into WeldException
------------------------------------------------------------------------------

                 Key: WELD-894
                 URL: https://issues.jboss.org/browse/WELD-894
             Project: Weld
          Issue Type: Feature Request
          Components: Interceptors and Decorators
    Affects Versions: 1.1.1.Final
            Reporter: Vlastimil Menčík


Currently, org.jboss.weld.bean.InterceptorImpl always throws a WeldException 
when the invoked method throws an exception.

This causes all exceptions in intercepted session bean methods to be treated as 
system exceptions by the EJB subsystem as WeldException is a system exception.

If RuntimeExceptions were simply rethrown, such exceptions (annotated with 
javax.ejb.ApplicationException) could pass through the interceptor unwrapped 
and be recognized as application exception in the EJB sense.

Of course, checked application exceptions are a bigger problem that would 
probably require a more sofisticated solution, that could be resolved later.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

_______________________________________________
weld-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/weld-issues

Reply via email to