[seam-issues] [JBoss JIRA] (SOLDER-291) ExceptionHandledInterceptor does not treat primitive values consistently

Jason Porter (Updated) (JIRA) jira-events at lists.jboss.org
Thu Oct 20 18:13:47 EDT 2011


     [ https://issues.jboss.org/browse/SOLDER-291?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jason Porter updated SOLDER-291:
--------------------------------

    Fix Version/s: 3.1.0.Beta4
                       (was: 3.1.0.CR1)

    
> ExceptionHandledInterceptor does not treat primitive values consistently
> ------------------------------------------------------------------------
>
>                 Key: SOLDER-291
>                 URL: https://issues.jboss.org/browse/SOLDER-291
>             Project: Seam Solder
>          Issue Type: Bug
>          Components: Exception Handling
>    Affects Versions: 3.1.0.Beta3
>            Reporter: Jozef Hartinger
>            Assignee: Jason Porter
>             Fix For: 3.1.0.Beta4
>
>
> if an method annotated with @ExceptionHandled throws an exception, ExceptionHandledInterceptor catches the exception and forwards it through Solder's exception handling framework for being handled. If the exception is handled, the method returns null for reference types and default values for primitive types. However, out of 8 primitive types that Java has, only 5 are handled this way.
> The missing types are:
> * byte
> * double
> * char
> If a method defining one of the missing types as its return type throws an exception and this exception is handled by the ExceptionHandledInterceptor, the method call always throws NullPointerException.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the seam-issues mailing list