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 2018/02/05 21:18:00 UTC

[jira] [Commented] (JEXL-252) Allow for interpolated strings to be used in property access operators

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

Henri Biestro commented on JEXL-252:
------------------------------------

committed https://github.com/apache/commons-jexl/commit/dffcc160edaa1be6dbf57095e67596f9a0a89ee9

> Allow for interpolated strings to be used in property access operators
> ----------------------------------------------------------------------
>
>                 Key: JEXL-252
>                 URL: https://issues.apache.org/jira/browse/JEXL-252
>             Project: Commons JEXL
>          Issue Type: New Feature
>    Affects Versions: 3.1
>            Reporter: Dmitri Blinov
>            Assignee: Henri Biestro
>            Priority: Minor
>             Fix For: 3.2
>
>
> Now we have a possibility to access an object property by specifying either {code}object.property{code} or {code}object."property"{code} expression, but not {code}object.`property`{code} expression. Since interpolated strings can be used anywhere in scripts as ordinal strings, it would be logical to allow them to be used in property access operators too. It would allow to have the property name not necessarily to be a constant, but to be evaluated without using the array access operator, since property access operator and array access operator could be implemented (overloaded) differently for the object.



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