You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2015/07/12 20:02:04 UTC
[jira] [Resolved] (CAMEL-6646) Support static method calls on OGNL
expressions
[ https://issues.apache.org/jira/browse/CAMEL-6646?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-6646.
--------------------------------
Resolution: Cannot Reproduce
> Support static method calls on OGNL expressions
> -----------------------------------------------
>
> Key: CAMEL-6646
> URL: https://issues.apache.org/jira/browse/CAMEL-6646
> Project: Camel
> Issue Type: Improvement
> Components: camel-core
> Reporter: Raúl Kripalani
> Assignee: Claus Ibsen
> Fix For: 2.16.0
>
>
> In OgnlInvokeProcessor, we currently don't support static method calls as we always require a bean instance.
> See this block of code in 2.10.3, starting on OgnlInvokeProcessor:247:
> {code}
> // loop and invoke each method
> Object beanToCall = beanHolder.getBean();
> // there must be a bean to call with, we currently does not support OGNL expressions on using purely static methods
> if (beanToCall == null) {
> throw new IllegalArgumentException("Bean instance is null. OGNL bean expressions requires bean instances.");
> }
> {code}
> Add support for these cases, especially handy if you use the method() expression frequently.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)