camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <>
Subject [jira] [Commented] (CAMEL-8137) Simple language does not resolve overloaded method calls
Date Wed, 10 Dec 2014 12:05:13 GMT


Claus Ibsen commented on CAMEL-8137:

This fix needs a bit more changes to BeanInfo in camel-core that I would like to introduce
in a patch fix, so moving this to 2.15 release. 

> Simple language does not resolve overloaded method calls
> --------------------------------------------------------
>                 Key: CAMEL-8137
>                 URL:
>             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

View raw message