From issues-return-27766-apmail-commons-issues-archive=commons.apache.org@commons.apache.org Sun Jul 1 14:49:02 2012 Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1D981D93F for ; Sun, 1 Jul 2012 14:49:02 +0000 (UTC) Received: (qmail 72019 invoked by uid 500); 1 Jul 2012 14:49:01 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 71773 invoked by uid 500); 1 Jul 2012 14:49:01 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 71727 invoked by uid 99); 1 Jul 2012 14:48:59 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Jul 2012 14:48:59 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 715FA14281B for ; Sun, 1 Jul 2012 14:48:58 +0000 (UTC) Date: Sun, 1 Jul 2012 14:48:58 +0000 (UTC) From: "Henri Biestro (JIRA)" To: issues@commons.apache.org Message-ID: <110797114.76514.1341154138465.JavaMail.jiratomcat@issues-vm> In-Reply-To: <121049112.71133.1340967705466.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Updated] (JEXL-134) Issue with evaluation of concat of variables : \r + \n gives 0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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: 2.1.2 > 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 > > > 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 is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira