Commit 0726753
committed
Fix ConditionalRejectingErrorHandler for IllegalStateException
Related to: #3396
Now that `DelegatingInvocableHandler` throws an `IllegalStateException` around `NoSuchMethodException`,
the logic in the `ConditionalRejectingErrorHandler` for `isFatal()` is not usable anymore.
* Change the `ConditionalRejectingErrorHandler.DefaultExceptionStrategy.isFatal()` logic
to rely on the `IllegalStateException` instead of `UndeclaredThrowableException`
to trigger expected by this error handler `AmqpRejectAndDontRequeueException` recovery1 parent f734831 commit 0726753
2 files changed
Lines changed: 15 additions & 2 deletions
File tree
- spring-rabbit/src
- main/java/org/springframework/amqp/rabbit/listener
- test/java/org/springframework/amqp/rabbit/annotation
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
205 | | - | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
206 | 209 | | |
207 | 210 | | |
208 | 211 | | |
| |||
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| 144 | + | |
144 | 145 | | |
145 | 146 | | |
146 | 147 | | |
| |||
2072 | 2073 | | |
2073 | 2074 | | |
2074 | 2075 | | |
| 2076 | + | |
| 2077 | + | |
| 2078 | + | |
| 2079 | + | |
| 2080 | + | |
| 2081 | + | |
| 2082 | + | |
| 2083 | + | |
2075 | 2084 | | |
2076 | 2085 | | |
2077 | 2086 | | |
| |||
2509 | 2518 | | |
2510 | 2519 | | |
2511 | 2520 | | |
2512 | | - | |
| 2521 | + | |
| 2522 | + | |
2513 | 2523 | | |
2514 | 2524 | | |
2515 | 2525 | | |
| |||
0 commit comments