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 DC93FCB10 for ; Wed, 10 Dec 2014 12:04:13 +0000 (UTC) Received: (qmail 43409 invoked by uid 500); 10 Dec 2014 12:04:13 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 43368 invoked by uid 500); 10 Dec 2014 12:04:13 -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 43358 invoked by uid 99); 10 Dec 2014 12:04:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Dec 2014 12:04:13 +0000 Date: Wed, 10 Dec 2014 12:04:13 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CAMEL-8137) Simple language does not resolve overloaded method calls MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-8137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claus Ibsen updated CAMEL-8137: ------------------------------- Fix Version/s: (was: 2.14.2) > Simple language does not resolve overloaded method calls > -------------------------------------------------------- > > Key: CAMEL-8137 > URL: https://issues.apache.org/jira/browse/CAMEL-8137 > Project: Camel > Issue Type: Bug > Components: camel-core > Affects Versions: 2.14.0 > Reporter: John Mark > Assignee: Claus Ibsen > Priority: Minor > Fix For: 2.15.0 > > > I am having an issue with the Simple language. I have a property named {{myFile}} with a value of a {{java.nio.file.Path}} object. When I try to use the following expression {noformat} ${property.file.getFileName} {noformat} in order to invoke the getFileName() method I get an exception saying: > {noformat} > Ambiguous method invocations possible: [public sun.nio.fs.UnixPath.getFileName(), public abstract java.nio.file.Path java.nio.file.Path.getFileName()] > {noformat} > I am able to use SpEL if I do > {noformat} > #{properties[myFile].getFileName()} > {noformat} > It would be nice if Simple supported this as well so I wouldn't have to go through hoops in order to use SpEL since I can't use SpEL to specify parameters in a uri. -- This message was sent by Atlassian JIRA (v6.3.4#6332)