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

Henri Biestro edited comment on JEXL-404 at 8/30/23 12:26 PM:
--------------------------------------------------------------

There is currently no syntax for safe-array access. See [Syntax 
reference|https://commons.apache.org/proper/commons-jexl/reference/syntax.html].
Adding it may be possible as an enhancement.


was (Author: henrib):
There is currently no syntax for safe-array access. See [Syntax 
reference|https://commons.apache.org/proper/commons-jexl/reference/syntax.html].

> error parsing a?['b']
> ---------------------
>
>                 Key: JEXL-404
>                 URL: https://issues.apache.org/jira/browse/JEXL-404
>             Project: Commons JEXL
>          Issue Type: Bug
>    Affects Versions: 3.3
>            Reporter: Xu Pengcheng
>            Priority: Major
>
> Code example:
> {code:java}
> var a = {:};
> a.b; // ok
> a['b'];  // ok
> a?.b; // ok
> a?['b']; // parsing error in ';' {code}
> with new JexlBuilder().safe(false).strict(true)
>  
> Thanks!



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to