Skip to content

SpEL expression evaluation should rethrow (not wrap) RuntimeExceptions [SPR-6610] #11276

@spring-projects-issues

Description

@spring-projects-issues

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)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions