Details
-
Type:
Bug
-
Status: Resolved (View Workflow)
-
Priority:
Major
-
Resolution: Done
-
Affects Version/s: 3.1.0.Beta3
-
Fix Version/s: 3.1.0.Beta4
-
Component/s: Exception Handling
-
Labels:None
Description
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.
Gliffy Diagrams
Activity
- All
- Comments
- Work Log
- History
- Activity
- Links Hierarchy
Added test org.jboss.solder.exception.control.test.common.interceptor.ExceptionHandledInterceptorTest.testDefaultValuesReturnedByHandledMethod()