You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2019/05/16 16:11:13 UTC
[camel] branch camel-2.x updated: CAMEL-13536: Using bean in
RouteBuilder with this on a method that are from the same RouteBuilder may
go into endless recurisve call in its toString representation. Thanks to
Kamil for test case.
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch camel-2.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-2.x by this push:
new 1ffaa6f CAMEL-13536: Using bean in RouteBuilder with this on a method that are from the same RouteBuilder may go into endless recurisve call in its toString representation. Thanks to Kamil for test case.
1ffaa6f is described below
commit 1ffaa6f52b3885c2d284225b10cbff517e6fcc27
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Thu May 16 18:09:51 2019 +0200
CAMEL-13536: Using bean in RouteBuilder with this on a method that are from the same RouteBuilder may go into endless recurisve call in its toString representation. Thanks to Kamil for test case.
---
camel-core/src/main/java/org/apache/camel/model/BeanDefinition.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/camel-core/src/main/java/org/apache/camel/model/BeanDefinition.java b/camel-core/src/main/java/org/apache/camel/model/BeanDefinition.java
index 2789d14..8debfaf 100644
--- a/camel-core/src/main/java/org/apache/camel/model/BeanDefinition.java
+++ b/camel-core/src/main/java/org/apache/camel/model/BeanDefinition.java
@@ -86,7 +86,7 @@ public class BeanDefinition extends NoOutputDefinition<BeanDefinition> {
}
return "ref:" + ref + methodText;
} else if (bean != null) {
- return bean.toString();
+ return ObjectHelper.className(bean);
} else if (beanClass != null) {
return beanClass.getName();
} else if (beanType != null) {