Commit 5ecfcce
GH-3415: Add Spring Framework 7.x compatibility to RetryUtils#ResponseErrorHandler
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.
Signed-off-by: Soby Chacko <[email protected]>1 parent 9aa0c9a commit 5ecfcce
File tree
1 file changed
+9
-1
lines changed- spring-ai-retry/src/main/java/org/springframework/ai/retry
1 file changed
+9
-1
lines changedLines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
| |||
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
| 42 | + | |
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
| |||
49 | 52 | | |
50 | 53 | | |
51 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
52 | 60 | | |
53 | 61 | | |
54 | 62 | | |
| |||
0 commit comments