zongaro 2003/02/11 10:39:28
Modified: java/src/org/apache/xalan/xsltc/compiler Tag: xslt20
GenerateIdCall.java
Log:
Applying patch for Bugzilla bug 16745 from Igor Hersht ([EMAIL PROTECTED]).
The code generated for a reference to generate-id with no arguments used to
default to the current node. XSLT requires it to default to the context node.
Revision Changes Path
No revision
No revision
1.2.8.1.2.3 +2 -2
xml-xalan/java/src/org/apache/xalan/xsltc/compiler/GenerateIdCall.java
Index: GenerateIdCall.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/compiler/GenerateIdCall.java,v
retrieving revision 1.2.8.1.2.2
retrieving revision 1.2.8.1.2.3
diff -u -r1.2.8.1.2.2 -r1.2.8.1.2.3
--- GenerateIdCall.java 30 Jan 2003 00:39:23 -0000 1.2.8.1.2.2
+++ GenerateIdCall.java 11 Feb 2003 18:39:28 -0000 1.2.8.1.2.3
@@ -75,7 +75,7 @@
public void translate(ClassGenerator classGen, MethodGenerator
methodGen) {
final InstructionList il = methodGen.getInstructionList();
if (argumentCount() == 0) {
- il.append(new ILOAD(methodGen.getLocalIndex("current")));
+ il.append(methodGen.loadContextNode());
}
else { // one argument
argument().translate(classGen, methodGen);
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]