commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 9912] - Exception using asPath()
Date Tue, 18 Jun 2002 00:02:06 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9912>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9912

Exception using asPath()

dmitri@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
            Summary|Exception using asPath()    |Exception using asPath()
            Version|1.0 Beta 1                  |1.0 Beta 2



------- Additional Comments From dmitri@apache.org  2002-06-18 00:02 -------
Fixed this problem - it had to do with the resolution of chains of dynamic 
property objects.

===================================================================
RCS file: /home/cvs/jakarta-
commons/jxpath/src/java/org/apache/commons/jxpath/ri/model/beans/PropertyOwnerPo
inter.java,v
retrieving revision 1.4
diff -r1.4 PropertyOwnerPointer.java
158,165d157
<     /**
<      * If has an index, returns a pointer to the collection element,
<      * otherwise returns the pointer itself.
<      */
<     public NodePointer getValuePointer() {
<         return NodePointer.newChildNodePointer(this, getName(), getNodeValue
());
<     }
< 
Index: src/java/org/apache/commons/jxpath/ri/axes/PredicateContext.java
===================================================================
RCS file: /home/cvs/jakarta-
commons/jxpath/src/java/org/apache/commons/jxpath/ri/axes/PredicateContext.java,
v
retrieving revision 1.10
diff -r1.10 PredicateContext.java
139a140,143
>         if (parent == null){
>             return false;
>         }
>         parent = parent.getValuePointer();
143c147,148
<         dynamicPropertyPointer = ((PropertyOwnerPointer)
parent).getPropertyPointer();
---
>         dynamicPropertyPointer =
>             ((PropertyOwnerPointer)parent).getPropertyPointer();
Index: src/java/org/apache/commons/jxpath/ri/model/NodePointer.java
===================================================================
RCS file: /home/cvs/jakarta-
commons/jxpath/src/java/org/apache/commons/jxpath/ri/model/NodePointer.java,v
retrieving revision 1.6
diff -r1.6 NodePointer.java
410,412c410,414
<         NodeTest test,
<         boolean reverse,
<         NodePointer startWith) {
---
>                     NodeTest test, boolean reverse, NodePointer startWith) {
>         NodePointer valuePointer = getValuePointer();
>         if (valuePointer != null && valuePointer != this){
>             return valuePointer.childIterator(test, reverse, startWith);
>         }
Index: src/test/org/apache/commons/jxpath/JXPathTestCase.java
===================================================================
RCS file: /home/cvs/jakarta-
commons/jxpath/src/test/org/apache/commons/jxpath/JXPathTestCase.java,v
retrieving revision 1.23
diff -r1.23 JXPathTestCase.java
288a289,290
>         bean.getMap().put("biz", tm);
> 
289a292
>         testGetValue(context, "map[@name='biz'][@name='bar']", "zz");
1203a1207,1214
>         test("map/Key2/name", "Name 6"),
>         testPath("map/Key2/name", "/map[@name='Key2']/name"),
>         test("/.[@name='map']/Key2/name", "Name 6"),
>         testPath("/.[@name='map']/Key2/name", "/map[@name='Key2']/name"),
>         test("/map[@name='Key2'][@name='name']", "Name 6"),
>         testPath("/map[@name='Key2'][@name='name']", "/map
[@name='Key2']/name"),
>         test("/.[@name='map'][@name='Key2'][@name='name']", "Name 6"),
>         testPath("/.[@name='map'][@name='Key2'][@name='name']", "/map
[@name='Key2']/name"),

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


Mime
View raw message