Problems with Simple language
-----------------------------
Key: CAMEL-4988
URL: https://issues.apache.org/jira/browse/CAMEL-4988
Project: Camel
Issue Type: Bug
Components: camel-core
Affects Versions: 2.9.0
Environment: Standalone application with Spring context and routes
defined in XML.
Reporter: Diego
If you don't use a simple expresion that falls back to the
SimpleBackwardsCompatibleParser, the simple language doesn't seem to work. If I
override the start and end token with an explicit definition of the
simplelanguage everything works well.
<bean id="simple" class="org.apache.camel.language.simple.SimpleLanguage">
<constructor-arg name="functionStartToken" value="${"/>
<constructor-arg name="functionEndToken" value="}"/>
</bean>
It seems that
org.apache.camel.language.simple.SimpleExpressionParser.SimpleExpressionParser(String)
fails to create an expression because startToken and endToken are
"automagically" changed for strange Strings. It seems that when
exchange.getContext().resolveLanguage("simple") tries to resolve the languaje
it doesn't use the default construtor and injects a strange start and end token
in the constructor SimpleLanguage(String functionStartToken, String
functionEndToken).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira