Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 49806 invoked from network); 5 Jan 2007 16:49:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Jan 2007 16:49:51 -0000 Received: (qmail 98018 invoked by uid 500); 5 Jan 2007 16:49:55 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 97964 invoked by uid 500); 5 Jan 2007 16:49:55 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 97953 invoked by uid 99); 5 Jan 2007 16:49:55 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Jan 2007 08:49:55 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Jan 2007 08:49:48 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id EFCE2714319 for ; Fri, 5 Jan 2007 08:49:27 -0800 (PST) Message-ID: <22399165.1168015767977.JavaMail.jira@brutus> Date: Fri, 5 Jan 2007 08:49:27 -0800 (PST) From: "Niall Pemberton (JIRA)" To: commons-dev@jakarta.apache.org Subject: [jira] Resolved: (JXPATH-36) Variable evaluation problem ? MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JXPATH-36?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:all-tabpanel ] Niall Pemberton resolved JXPATH-36. ----------------------------------- Resolution: Fixed Fix Version/s: 1.0 Final > Variable evaluation problem ? > ----------------------------- > > Key: JXPATH-36 > URL: https://issues.apache.org/jira/browse/JXPATH-36 > Project: Commons JXPath > Issue Type: Bug > Affects Versions: 1.0 Beta 1 > Environment: Operating System: All > Platform: All > Reporter: J=C3=A9r=C3=B4me Pochat > Priority: Critical > Fix For: 1.0 Final > > > We get a strange result with variable and/or pointer using. > Work well : > =09context.getVariables().declareVariable("v1", "Dmitri"); > =09Pointer pointer1 =3D context.getPointer("/employees > [firstName=3D$v1]/lastName"); > =09Pointer pointer2 =3D context.getPointer("/employees[firstName=3D$v1]")= ; > Doesn't seem to work : > =09context.getVariables().declareVariable("v1", "Dmitri"); > =09Pointer pointer1 =3D context.getPointer("/employees[firstName=3D$v1]")= ; > =09Pointer pointer2 =3D context.getPointer("/employees[firstName=3D$v1]")= ; > Reference pointer1 is a "BeanPointer". > Reference pointer2 is a "NullPointer", so its "getValue" method return=20 > always "null". > We can obtain only one pointer corresponding to a given expression. This= =20 > problem appears only with path containing variables. --=20 This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: htt= ps://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org