
|
If you were logged in you would be able to see more operations.
|
|
|
Spring Batch
Created: 13/Mar/08 02:45 PM
Updated: 14/Mar/08 03:54 AM
|
|
| Component/s: |
Core
|
| Affects Version/s: |
1.0.0.m5
|
| Fix Version/s: |
1.0.0.rc1
|
|
|
Time Tracking:
|
|
Original Estimate:
|
0.25d
|
|
|
Remaining Estimate:
|
0.25d
|
|
|
Time Spent:
|
Not Specified
|
|
|
|
|
SimpleJob.execute() uses rethrow() to rethrow all Throwables caught during execution. rethrow checks to see if something is a RuntimeException and wraps it if it is not.
the issue is that anything that is an Error (OutOfMemory, StackOverflow, etc.) is caught and wrapped as an UnexpectedJobExecutionException. errors are inadvertently reclassified as exceptions.
honestly, i think that it's a little dodgy to be catching errors anyway, but if you must, rethrow needs to be corrected.
|
|
Description
|
SimpleJob.execute() uses rethrow() to rethrow all Throwables caught during execution. rethrow checks to see if something is a RuntimeException and wraps it if it is not.
the issue is that anything that is an Error (OutOfMemory, StackOverflow, etc.) is caught and wrapped as an UnexpectedJobExecutionException. errors are inadvertently reclassified as exceptions.
honestly, i think that it's a little dodgy to be catching errors anyway, but if you must, rethrow needs to be corrected. |
Show » |
|