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-171) Map access operator does not work if key name clashes with map property name
Date Fri, 31 Jul 2015 05:19:04 GMT

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

Dmitri Blinov commented on JEXL-171:
------------------------------------

Great, can we have also an annotation for this to be able to specify property resolution order
for a particular class ?

Something like this...
{code}
@JexlProperty({JexlUberspect.ResolverType.MAP, JexlUberspect.ResolverType.LIST})
public class Foo {
{code}

> Map access operator does not work if key name clashes with map property name
> ----------------------------------------------------------------------------
>
>                 Key: JEXL-171
>                 URL: https://issues.apache.org/jira/browse/JEXL-171
>             Project: Commons JEXL
>          Issue Type: Bug
>    Affects Versions: 3.0
>            Reporter: Dmitri Blinov
>            Assignee: Henri Biestro
>            Priority: Critical
>             Fix For: 3.0
>
>
> The following example returns *false*, according to documentation should return *2*.
> i = new ("java.util.HashMap"); i.a = 1; i["empty"] = 2; i["empty"] 



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

Mime
View raw message