Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0902B18B0A for ; Sun, 12 Jul 2015 18:02:05 +0000 (UTC) Received: (qmail 66824 invoked by uid 500); 12 Jul 2015 18:02:04 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 66788 invoked by uid 500); 12 Jul 2015 18:02:04 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 66779 invoked by uid 99); 12 Jul 2015 18:02:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 12 Jul 2015 18:02:04 +0000 Date: Sun, 12 Jul 2015 18:02:04 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CAMEL-6646) Support static method calls on OGNL expressions MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-6646?page=3Dcom.atlassia= n.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=C3=BAl 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 =3D beanHolder.getBean(); > // there must be a bean to call with, we currently does not support OGNL = expressions on using purely static methods > if (beanToCall =3D=3D 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() exp= ression frequently. -- This message was sent by Atlassian JIRA (v6.3.4#6332)