You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by pc...@apache.org on 2025/12/12 09:48:02 UTC
(camel) branch main updated: chore(core): core processor class check hardening
This is an automated email from the ASF dual-hosted git repository.
pcongiusti 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 94ee0ffdb942 chore(core): core processor class check hardening
94ee0ffdb942 is described below
commit 94ee0ffdb942ef322e30d92e32249cbf9e1668e1
Author: Pasquale Congiusti <pa...@gmail.com>
AuthorDate: Fri Dec 12 09:22:28 2025 +0100
chore(core): core processor class check hardening
---
.../camel/processor/errorhandler/DefaultExceptionPolicyStrategy.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/core/camel-core-processor/src/main/java/org/apache/camel/processor/errorhandler/DefaultExceptionPolicyStrategy.java b/core/camel-core-processor/src/main/java/org/apache/camel/processor/errorhandler/DefaultExceptionPolicyStrategy.java
index 45aab86cbc7e..e7c19c17f3da 100644
--- a/core/camel-core-processor/src/main/java/org/apache/camel/processor/errorhandler/DefaultExceptionPolicyStrategy.java
+++ b/core/camel-core-processor/src/main/java/org/apache/camel/processor/errorhandler/DefaultExceptionPolicyStrategy.java
@@ -244,7 +244,7 @@ public class DefaultExceptionPolicyStrategy implements ExceptionPolicyStrategy {
}
private static int getInheritanceLevel(Class<?> clazz) {
- if (clazz == null || "java.lang.Object".equals(clazz.getName())) {
+ if (clazz == null || clazz == Object.class) {
return 0;
}
return 1 + getInheritanceLevel(clazz.getSuperclass());