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:16 UTC

[camel] branch camel-2.24.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.24.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-2.24.x by this push:
     new e1d75d3  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.
e1d75d3 is described below

commit e1d75d378ab09983a38c35713ea6582a9faeaac2
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) {