You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Osy (Jira)" <ji...@apache.org> on 2019/09/13 14:40:00 UTC
[jira] [Comment Edited] (JEXL-314) Comparison NULL values of
variables NAME1.NAME2
[ https://issues.apache.org/jira/browse/JEXL-314?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16929252#comment-16929252 ]
Osy edited comment on JEXL-314 at 9/13/19 2:39 PM:
---------------------------------------------------
I have an error trying to set engine to safe
{code:java}
JexlEngine jexl = new JexlBuilder().strict(true).safe(true).create();{code}
*The method safe(boolean) is undefined for the type JexlBuilder*
was (Author: osymad):
I have an error trying to set engine to safe
JexlEngine jexl = new JexlBuilder().strict(true).safe(true).create();
*The method safe(boolean) is undefined for the type JexlBuilder*
> Comparison NULL values of variables NAME1.NAME2
> -----------------------------------------------
>
> Key: JEXL-314
> URL: https://issues.apache.org/jira/browse/JEXL-314
> Project: Commons JEXL
> Issue Type: Wish
> Affects Versions: 3.1
> Reporter: Osy
> Priority: Minor
>
> I am adding to my context this NULL variable :
>
> {code:java}
> jc.set("TVALOGAR.PEPITO", null);
> jexlExp = "TVALOGAR.PEPITO==null?'SIMON':'SIMONAZO'";
> {code}
> After evaluate the jexlExp I get the error:
> *Exception in thread "main" org.apache.commons.jexl3.JexlException$Variable: com.expre.test.TestJexl.main@1:1 null value variable TVALOGAR.PEPITO*
>
> This is not happening If I am using only a simple variable name:
> {code:java}
> jc.set("TVALOGAR", null);
> jexlExp = "TVALOGAR==null?'SIMON':'SIMONAZO'";
> {code}
> *Expression Value :SIMON*
> Is this the expected behaviour?
>
--
This message was sent by Atlassian Jira
(v8.3.2#803003)