Skip to content

Conversation

@sobychacko
Copy link
Contributor

…eErrorHandler

Fixes: #3415

  • Remove @OverRide annotation from handleError(ClientHttpResponse) method to support compilation against both Spring 6.2.x and 7.x
  • Add delegation from new handleError(URI, HttpMethod, ClientHttpResponse) method to maintain backward compatibility
  • Preserve existing error handling logic

This change allows Spring AI to work seamlessly across Spring Framework versions 6.x and 7.x without requiring reflection or version detection at runtime.

…ryUtils#ResponseErrorHandler

Fixes: spring-projects#3415

- Remove @OverRide annotation from handleError(ClientHttpResponse) method
 to support compilation against both Spring 6.2.x and 7.x
- Add delegation from new handleError(URI, HttpMethod, ClientHttpResponse)
 method to maintain backward compatibility
- Preserve existing error handling logic

This change allows Spring AI to work seamlessly across Spring Framework
versions 6.x and 7.x without requiring reflection or version detection at runtime.

Signed-off-by: Soby Chacko <[email protected]>
@ilayaperumalg ilayaperumalg self-assigned this Jun 3, 2025
@ilayaperumalg ilayaperumalg added this to the 1.1.x milestone Jun 3, 2025
@ilayaperumalg ilayaperumalg merged commit 094eeab into spring-projects:main Jun 3, 2025
2 checks passed
@ilayaperumalg
Copy link
Member

Cherry-picked into 1.0.x via 5ecfcce

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ResponseErrorHandler used in RetryUtils fails with Spring Framework 7.x

2 participants