You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2007/01/04 00:48:04 UTC

DO NOT REPLY [Bug 38586] - [jxpath] Descendant or self axis does not work correctly at root node

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38586>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38586





------- Additional Comments From sar@gazeta.pl  2007-01-03 15:48 -------
Created an attachment (id=19348)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=19348&action=view)
Path proposal to fix this problem

Adding a patch proposition for this bug. 

As written here before, bug actually appears when xpatch is like "//root".
It appears also when a dom is inside any java structure 
(for example: map.put("test", new Document(new Element("root"))); xpatch for
"//root" would return null).

Exactly the same bug was both for JDom and Dom; both are fixed.

Modifies 4 files:
 main:
   JDOMNodePointer.java
   DOMNodePointer.java
 tests:  
   JDOMModelTest.java
   DOMModelTest.java

This patch is to latest version (2.2?), not to version 1.2.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org