You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by gn...@apache.org on 2020/03/27 10:45:50 UTC

[camel] branch master updated: Fix problem with type converters being loaded too late

This is an automated email from the ASF dual-hosted git repository.

gnodet pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
     new e684a0b  Fix problem with type converters being loaded too late
e684a0b is described below

commit e684a0ba61f252b4c2610c4ac9121992ec2c99ae
Author: Guillaume Nodet <gn...@gmail.com>
AuthorDate: Fri Mar 27 11:44:53 2020 +0100

    Fix problem with type converters being loaded too late
---
 .../org/apache/camel/core/xml/AbstractCamelContextFactoryBean.java     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/core/camel-core-xml/src/main/java/org/apache/camel/core/xml/AbstractCamelContextFactoryBean.java b/core/camel-core-xml/src/main/java/org/apache/camel/core/xml/AbstractCamelContextFactoryBean.java
index 6bb4fe7..6a3887a 100644
--- a/core/camel-core-xml/src/main/java/org/apache/camel/core/xml/AbstractCamelContextFactoryBean.java
+++ b/core/camel-core-xml/src/main/java/org/apache/camel/core/xml/AbstractCamelContextFactoryBean.java
@@ -196,7 +196,8 @@ public abstract class AbstractCamelContextFactoryBean<T extends ModelCamelContex
 
         // setup whether to load type converters as early as possible
         if (getLoadTypeConverters() != null) {
-            getContext().setLoadTypeConverters(CamelContextHelper.parseBoolean(getContext(), getLoadTypeConverters()));
+            String s = getContext().resolvePropertyPlaceholders(getLoadTypeConverters());
+            getContext().setLoadTypeConverters(Boolean.parseBoolean(s));
         }
 
         // then set custom properties