Skip to content

More expected exception tweaks for SpEL expression method invocations [SPR-6941] #11606

@spring-projects-issues

Description

@spring-projects-issues

Dave Syer opened SPR-6941 and commented

#11276 added a new exception handling pathway to MethodReference. There are two outstanding issues:

1 The new handling pathway is only taken if the cachedExecutor is not null (no presumably only on the first execution)

2 It only handles RuntimeException in a special way and not checked Exceptions (which might still be legal and expected)

1 looks like a bug? 2 is more tricky, but I believe still against the spirit of #11276 and the comments added in the code to explain the new handling pathway. I think that if the method declares that it throws the exception that is being handled it should be rethrown without wrapping.


Affects: 3.0.1

Referenced from: commits 2b0655b, 2dd1134

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions