You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by il...@apache.org on 2002/11/13 23:08:09 UTC
cvs commit: xml-xalan/java/src/org/apache/xpath/axes PredicatedNodeTest.java
ilene 2002/11/13 14:08:09
Modified: java/src/org/apache/xpath/axes PredicatedNodeTest.java
Log:
Committing Gordon Chiu's (grchiu@ca.ibm.com) patches for bugzilla #14365, 14368.
Fixes for processing of last() function.
Revision Changes Path
1.12 +6 -1 xml-xalan/java/src/org/apache/xpath/axes/PredicatedNodeTest.java
Index: PredicatedNodeTest.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xpath/axes/PredicatedNodeTest.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- PredicatedNodeTest.java 6 May 2002 21:57:45 -0000 1.11
+++ PredicatedNodeTest.java 13 Nov 2002 22:08:09 -0000 1.12
@@ -361,7 +361,12 @@
// course of itteration, then we know there can be no more true
// occurances of this predicate, so flag that we're done after
// this.
- if(m_predicates[i].isStableNumber())
+ //
+ // bugzilla 14365
+ // We can't set m_foundLast = true unless we're sure that -all-
+ // remaining parameters are stable, or else last() fails. Fixed so
+ // only sets m_foundLast if on the last predicate
+ if(m_predicates[i].isStableNumber() && i == nPredicates - 1)
{
m_foundLast = true;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org