-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Closed
Closed
Copy link
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancementA general enhancement
Milestone
Description
Dave Syer opened SPR-6610 and commented
SpEL expression evaluation should rethrow (not wrap) RuntimeExceptions. SpEL gets used to invoke methods a lot now (maybe that wasn't the primary use case that we had in mind to start with) and it can be really difficult for the user to find out what actually went wrong because it gets wrapped in a large stack of SpEL exceptions. INT-941 is an example of where this surfaced recently.
I guess (like an AOP interceptor) you could argue that sometimes even checked Exceptions should be rethrown. Hard to see how to determine that at runtime.
Affects: 3.0 GA
Referenced from: commits 644f306
Metadata
Metadata
Assignees
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancementA general enhancement