[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jakarta-commons-dev
Subject:    [jira] [Updated] (JXPATH-182) asPath() returns XPath that can't be found in the context
From:       "Evgeniy Sharapov (JIRA)" <jira () apache ! org>
Date:       2015-10-30 17:05:27
Message-ID: JIRA.12909249.1446224547000.109963.1446224727693 () Atlassian ! JIRA
[Download RAW message or body]


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

Evgeniy Sharapov updated JXPATH-182:
------------------------------------
    Attachment: JXpath182Test.java

test for the issue

> asPath() returns XPath that can't be found in the context
> ---------------------------------------------------------
> 
> Key: JXPATH-182
> URL: https://issues.apache.org/jira/browse/JXPATH-182
> Project: Commons JXPath
> Issue Type: Bug
> Reporter: Evgeniy Sharapov
> Attachments: JXpath182Test.java
> 
> 
> When I get the pointer and then call its {{asPath}} method and use that path to \
> find a pointer in the same context {{JXPathContext}} can't find it. In the attached \
> test  I get the pointer by using {{"data[1]/data[1]"}}
> {{asPath()}} then returns {{"/.[@name='data'][1][@name='data'][1]"}}
> But in fact it should be {{/.[@name='data'][1]/.[@name='data'][1]}}



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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic