[jboss-jira] [JBoss JIRA] Commented: (EJBTHREE-2262) When throwing an application exception in a method that is annotated with NOT_SUPPORTED it should not wrap the application Exception.

Christian Schlüter (JIRA) jira-events at lists.jboss.org
Tue Jul 19 10:21:23 EDT 2011


    [ https://issues.jboss.org/browse/EJBTHREE-2262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12615045#comment-12615045 ] 

Christian Schlüter commented on EJBTHREE-2262:
----------------------------------------------

I think this is not a duplicate issue.
EJBTHREE-2261 is about the definition of an application exception.
This case complains about inconsistent behaviour in jboss:
With NOT_SUPPORTED the exception is handled as non-application exception. In any other case it is.
The interpretation of application definition (however it is defined) must be consistent and not dependand on a transaction-handling annotation.

> When throwing an application exception in a method that is annotated with NOT_SUPPORTED it should not wrap the application Exception.
> -------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: EJBTHREE-2262
>                 URL: https://issues.jboss.org/browse/EJBTHREE-2262
>             Project: EJB 3.0
>          Issue Type: Bug
>            Reporter: Shaun Appleton
>         Attachments: stateless_00500318.zip
>
>
> When throwing an application exception in a method that is annotated with NOT_SUPPORTED it should not wrap the application Exception.
> What currently happen is that it is wrapped in an EJBException instead of being thrown un-wrapped.
> See Table 14 p361. of jsr-220 spec
> This has been tested on EAP 5.1.0

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

       



More information about the jboss-jira mailing list