You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "John Mark (JIRA)" <ji...@apache.org> on 2014/12/09 18:31:13 UTC

[jira] [Created] (CAMEL-8137) Simple language does not resolve overloaded method calls

John Mark created CAMEL-8137:
--------------------------------

             Summary: 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
            Reporter: John Mark
            Priority: Minor


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)