You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Henri Biestro (JIRA)" <ji...@apache.org> on 2015/03/19 16:21:39 UTC

[jira] [Updated] (JEXL-148) Incorrect Map Property get

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

Henri Biestro updated JEXL-148:
-------------------------------
    Fix Version/s: 3.0

> Incorrect Map Property get
> --------------------------
>
>                 Key: JEXL-148
>                 URL: https://issues.apache.org/jira/browse/JEXL-148
>             Project: Commons JEXL
>          Issue Type: Bug
>    Affects Versions: 2.1.1
>            Reporter: Dmitri Blinov
>             Fix For: 3.0
>
>
> If I try to execute jelly statement that assigns values to map and gets values from that map after. In one particular case map value is not accessible, I assume there is an error. 
> "var x = new ("java.util.HashMap"); x.one = 1; x.two = 2; x.one" results to 1
> "x = new ("java.util.HashMap"); x.one = 1; x.two = 2; x.one" results to 1
> "x = new ("java.util.HashMap"); x.one = 1; x.two = 2; x['one']" results to 1
> "var x = new ("java.util.HashMap"); x.one = 1; x.two = 2; x['one']" result to null
> The script is evaluated in the following usual manner:
> ...
>        Script s = jexl.createScript(expr);
>        try {
>           Object result = s.execute(jc);
> ..
> I'm ready to provide more details if nessesary



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)