[
https://issues.apache.org/jira/browse/CAMEL-4988?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen resolved CAMEL-4988.
--------------------------------
Resolution: Fixed
Fix Version/s: 2.10.0
2.9.1
> 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
> Assignee: Claus Ibsen
> Fix For: 2.9.1, 2.10.0
>
>
> 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