Skip to content

Inconsistent behavior with @Retryable on annotated interfaces #36233

@bezchmurny

Description

@bezchmurny

Using Spring Boot 4.0.2/Framework 7.0.3 I noticed a change of behaviour vs 4.0.0/7.0.1.

If I added the @Retryable annotation from Spring Context to an interface, the behaviour would apply to my implementing service if I autowired it in via the interface.

As soon as I upgraded to newer versions (including 4.0.2/7.0.2) this behaviour changed and I had to relocate the annotation to the concrete implementation.

I have reproduced this in the attached sample - just switch out the Spring Boot version in the Gradle file between 4.0.0 and 4.0.2 to see the effect.

I could not spot this change in the release notes or another issue but maybe I missed something? To me this feels like a bug or unintended consequence.

retryable-test.zip

Thanks,

Stephen

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions