mmidy       01/10/18 14:24:45

  Modified:    java/src/org/apache/xpath VariableStack.java
  Log:
  Bugzilla 4218: Make sure that the stack frame gets restored to the frame that 
was previously set. Just calling unlink() may restore to the wrong frame, and 
get us out of synch.
  
  Revision  Changes    Path
  1.37      +12 -0     xml-xalan/java/src/org/apache/xpath/VariableStack.java
  
  Index: VariableStack.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xpath/VariableStack.java,v
  retrieving revision 1.36
  retrieving revision 1.37
  diff -u -r1.36 -r1.37
  --- VariableStack.java        2001/10/12 20:04:34     1.36
  +++ VariableStack.java        2001/10/18 21:24:44     1.37
  @@ -248,6 +248,18 @@
       _top = _links[--_linksTop];
       _cfb = _links[_linksTop - 1];
     }
  +  
  +  /**
  +   * Free up the stack frame that was last allocated with
  +   * [EMAIL PROTECTED] link(int size)}.
  +   * @param currentFrame The current frame to set to 
  +   * after the unlink.
  +   */
  +  public  void unlink(int currentFrame)
  +  {
  +    _top = _links[--_linksTop];
  +    _cfb = currentFrame; 
  +  }
   
     /**
      * Set a local variable or parameter in the current stack frame.
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to