[ 
https://issues.apache.org/jira/browse/JXPATH-36?page=com.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érôme Pochat
>            Priority: Critical
>             Fix For: 1.0 Final
>
>
> We get a strange result with variable and/or pointer using.
> Work well :
>       context.getVariables().declareVariable("v1", "Dmitri");
>       Pointer pointer1 = context.getPointer("/employees
> [firstName=$v1]/lastName");
>       Pointer pointer2 = context.getPointer("/employees[firstName=$v1]");
> Doesn't seem to work :
>       context.getVariables().declareVariable("v1", "Dmitri");
>       Pointer pointer1 = context.getPointer("/employees[firstName=$v1]");
>       Pointer pointer2 = context.getPointer("/employees[firstName=$v1]");
> Reference pointer1 is a "BeanPointer".
> Reference pointer2 is a "NullPointer", so its "getValue" method return 
> always "null".
> We can obtain only one pointer corresponding to a given expression. This 
> problem appears only with path containing variables.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to