[ 
https://issues.apache.org/jira/browse/FELIX-1473?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Derek Baum resolved FELIX-1473.
-------------------------------

    Fix Version/s: gogo-0.8.0
                       (was: gogo-0.6.0)
       Resolution: Fixed

use new approach to call methods on Strings.

e.g. this now works:

g! $SCOPE length
6

g! cmd = echo
echo
g! $cmd hello
gogo: IllegalArgumentException: Cannot coerce hello() to any of []
g!         
g! eval $cmd hello
hello

> [gogo] The syntax does not provide a way to call methods on a string
> --------------------------------------------------------------------
>
>                 Key: FELIX-1473
>                 URL: https://issues.apache.org/jira/browse/FELIX-1473
>             Project: Felix
>          Issue Type: Bug
>          Components: Gogo Runtime
>            Reporter: Guillaume Nodet
>            Assignee: Derek Baum
>             Fix For: gogo-0.8.0
>
>         Attachments: FELIX-1473.patch
>
>
> When the first argument is a string, gogo considers it to be a command.
> The problem is that it leads to unpredictible behavior when using variables
> > $a length
> Depending on the type of $a, it will either try to call a command named by 
> the value of $a, or call the length method on the $a object.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to