morten 01/09/26 06:41:42
Modified: java/src/org/apache/xalan/xsltc/compiler Step.java
Log:
Fix after a regression for preceding-sibling::* iterator.
Submitted by: [EMAIL PROTECTED]
Reviewed by: [EMAIL PROTECTED]
Revision Changes Path
1.16 +4 -5
xml-xalan/java/src/org/apache/xalan/xsltc/compiler/Step.java
Index: Step.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/compiler/Step.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- Step.java 2001/09/26 12:43:45 1.15
+++ Step.java 2001/09/26 13:41:42 1.16
@@ -1,5 +1,5 @@
/*
- * @(#)$Id: Step.java,v 1.15 2001/09/26 12:43:45 morten Exp $
+ * @(#)$Id: Step.java,v 1.16 2001/09/26 13:41:42 morten Exp $
*
* The Apache Software License, Version 1.1
*
@@ -336,7 +336,7 @@
il.append(new PUSH(cpg, _axis));
il.append(new PUSH(cpg, _nodeType));
il.append(new INVOKEINTERFACE(ty, 3));
-
+
// Now, for reverse iterators we may need to re-arrange the
// node ordering (ancestor-type iterators).
if (!(getParent() instanceof ForEach) && (!hasParent()))
@@ -467,9 +467,8 @@
MethodGenerator methodGen) {
final ConstantPoolGen cpg = classGen.getConstantPool();
final InstructionList il = methodGen.getInstructionList();
- if ((_axis == Axis.ANCESTOR) ||
- (_axis == Axis.ANCESTORORSELF) ||
- (_axis == Axis.PRECEDING)) {
+ if ((_axis == Axis.ANCESTOR) || (_axis == Axis.ANCESTORORSELF) ||
+ (_axis == Axis.PRECEDING) || (_axis == Axis.PRECEDINGSIBLING)) {
final int init = cpg.addMethodref(REVERSE_ITERATOR, "<init>",
"("+NODE_ITERATOR_SIG+")V");
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]