You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2023/06/24 07:01:20 UTC
[camel] branch main updated: (chores) camel-bean: do catch AssertionErrors
This is an automated email from the ASF dual-hosted git repository.
orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new c71e6a2b03c (chores) camel-bean: do catch AssertionErrors
c71e6a2b03c is described below
commit c71e6a2b03c2d48e753f1a6987a031ac6d1ef6d9
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Sat Jun 24 08:38:47 2023 +0200
(chores) camel-bean: do catch AssertionErrors
Fix a bug introduced by 793e798f464572ae754fb99a9acc7d7bf28ae1b7, since this code does need to catch AssertionErrors.
---
.../java/org/apache/camel/component/bean/AbstractBeanProcessor.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/components/camel-bean/src/main/java/org/apache/camel/component/bean/AbstractBeanProcessor.java b/components/camel-bean/src/main/java/org/apache/camel/component/bean/AbstractBeanProcessor.java
index 5202265d15a..70a0fc24bb7 100644
--- a/components/camel-bean/src/main/java/org/apache/camel/component/bean/AbstractBeanProcessor.java
+++ b/components/camel-bean/src/main/java/org/apache/camel/component/bean/AbstractBeanProcessor.java
@@ -106,7 +106,7 @@ public abstract class AbstractBeanProcessor extends AsyncProcessorSupport {
}
try {
target.process(exchange);
- } catch (Exception e) {
+ } catch (AssertionError | Exception e) {
exchange.setException(e);
}
callback.done(true);