zongaro     2003/02/11 09:06:35

  Modified:    java/src/org/apache/xalan/xsltc/compiler 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
  1.5       +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.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- GenerateIdCall.java       30 Jan 2003 18:46:00 -0000      1.4
  +++ GenerateIdCall.java       11 Feb 2003 17:06:35 -0000      1.5
  @@ -80,7 +80,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]

Reply via email to