You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Dmitri Blinov (JIRA)" <ji...@apache.org> on 2018/05/28 12:05:00 UTC

[jira] [Closed] (JEXL-259) Shorter ant-ish variables prevent longer ant-ish variables from being resolved properly

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

Dmitri Blinov closed JEXL-259.
------------------------------
       Resolution: Workaround
    Fix Version/s: 3.1

I have worked this out for my case, and I think we can close this issue, as further improvements to ant-ish variables, if any, could be made under separate task. For now, may be its worth mentioning somewhere in documentation that such variables have its limitations in naming

> Shorter ant-ish variables prevent longer ant-ish variables from being resolved properly
> ---------------------------------------------------------------------------------------
>
>                 Key: JEXL-259
>                 URL: https://issues.apache.org/jira/browse/JEXL-259
>             Project: Commons JEXL
>          Issue Type: Bug
>    Affects Versions: 3.1
>            Reporter: Dmitri Blinov
>            Priority: Major
>             Fix For: 3.1
>
>
> The following script is evaluated successfully
> {code}
> a.b.c = 2; a.b = 1; return a.b
> {code}
> While the following scripts are terminated with error {{unsolvable property 'c'}}
> {code}
> a.b = 1; a.b.c = 2; return a.b
> {code}
> {code}
> a.b.c = 2; a.b = 1; return a.b.c
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)