Change request #109
Improve exception handling for custom method invocation
| Status: | Closed | Start: | ||
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assigned to: | % Done: | 100% |
||
| Category: | - | Spent time: | - | |
| Target version: | 0.7 |
Description
Currently exceptions being thrown in custom methods are wrapped into an InvocationTargetException due to the reflection call. This is rather ugly as it makes exception handling at the client side really awkward. This could be improved by using Spring's ReflectionUtils class that correctly handles the case.
Originally proposed by Wolfgang Brauneis.
Spring's ReflectionUtils class does kind of a good job but does not allow the invoked method to throw checked exceptions which might be the case in some cases. Thus manual handling of the case might be necessary.
Associated revisions
- fixes #109 - exceptions in custom implementations are thrown as is now
- references #109 - tests for exception handling
History
Updated by Oliver Gierke 11 months ago
- Status changed from New to In progress
Updated by Oliver Gierke 11 months ago
- File mylyn-context.zip added
Updated by Oliver Gierke 11 months ago
- Status changed from In progress to Fixed
- % Done changed from 0 to 100
Applied in changeset r6694.
Updated by Oliver Gierke 11 months ago
- Target version set to 0.7
Updated by Oliver Gierke 11 months ago
- Status changed from Fixed to Closed