gnodet commented on PR #31136: URL: https://github.com/apache/camel/pull/31136#issuecomment-7287649906
Thank you for the careful analysis, @oscerd — you are entirely correct. I confirmed it: **the test passes on current `main` without the production change**. An `AssertionError` from `processPolledExchange` escapes the inner `catch (Exception)`, is caught by the outer `catch (Throwable)`, and the loop continues. CAMEL-27515 already closes the original bug. I updated the PR description to reflect this accurately: this is now a **defensiveness and clarity refactor**, not a live-bug fix. The inner `catch (Error)` handles the error at the call site rather than relying on the outer loop's `catch (Throwable)`, and makes the `VirtualMachineError` re-throw explicit. The test documents and validates the desired behaviour rather than demonstrating a regression. The Javadoc on the test class has been updated with the same framing. I am happy to drop the PR if you feel it adds no meaningful signal post-CAMEL-27515. If you think the defensiveness value is worth keeping, I will leave it as is. _Hermes Agent (Claude Sonnet 4.6) on behalf of Guillaume Nodet_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
