You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Cameron Samak (Jira)" <ji...@apache.org> on 2021/06/02 18:15:00 UTC

[jira] [Commented] (JEXL-349) Script valid in 3.0 no longer valid

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

Cameron Samak commented on JEXL-349:
------------------------------------

In our case we just need getVariables from JexlScript so forcing it to work with the createScript overload that takes JexlFeatures is enough.

> Script valid in 3.0 no longer valid
> -----------------------------------
>
>                 Key: JEXL-349
>                 URL: https://issues.apache.org/jira/browse/JEXL-349
>             Project: Commons JEXL
>          Issue Type: Bug
>            Reporter: Cameron Samak
>            Priority: Minor
>
> {code:java}
> String text = "(A ? B.C : D)";
> JexlExpression expr = engine.createExpression(text); // works at HEAD
> JexlExpression script = engine.createScript(text); // does not work
> {code}
> Both lines above work in 3.0



--
This message was sent by Atlassian Jira
(v8.3.4#803005)