Skip to content

RetryException#getCause should not be nullable #35332

@snicoll

Description

@snicoll

The last thrown exception is often used in code that catches RetryException.

Currently the cause is @Nullable from the contract of java.lang.Throwable.getCause(), but it shouldn't be for a RetryException.

A side effect of that is that we can no longer create such an exception without the last exception that was thrown.

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