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 2016/03/22 18:04:25 UTC

[jira] [Updated] (JEXL-134) Issue with evaluation of concat of variables : \r + \n gives 0

     [ https://issues.apache.org/jira/browse/JEXL-134?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henri Biestro updated JEXL-134:
-------------------------------
    Fix Version/s:     (was: 3.0.1)
                   3.0

> Issue with evaluation of concat of variables : \r + \n gives 0
> --------------------------------------------------------------
>
>                 Key: JEXL-134
>                 URL: https://issues.apache.org/jira/browse/JEXL-134
>             Project: Commons JEXL
>          Issue Type: Bug
>    Affects Versions: 2.1.1
>         Environment: Windows Xp, jdk1.6.0_14
>            Reporter: Manoj Mokashi
>            Assignee: Henri Biestro
>             Fix For: 2.1.2, 3.0
>
>
> Consider the following example :
> 		String jexlExp = "$$__INPUT + nl";
> 		Expression e = jexl.createExpression( jexlExp );
> 		// Create a context and add data
> 		JexlContext jc = new MapContext();
> 		jc.set("$$__INPUT", "\r" );
> 		jc.set("nl", "\n");
> 		// Now evaluate the expression, getting the result
> 		Object o = e.evaluate(jc);
> The result is 0 instead of "\r\n"



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