commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitri Blinov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (JEXL-148) Incorrect Map Property get
Date Tue, 10 Mar 2015 14:06:38 GMT

    [ https://issues.apache.org/jira/browse/JEXL-148?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14354925#comment-14354925
] 

Dmitri Blinov commented on JEXL-148:
------------------------------------

Sorry for troubling you then. Looking forward for 3.0 release. Many thanks in advance.

> 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
>
> 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)

Mime
View raw message