You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by jy...@apache.org on 2004/02/05 21:41:54 UTC

cvs commit: xml-xalan/java/src/org/apache/xpath/functions FuncExtFunction.java

jycli       2004/02/05 12:41:54

  Modified:    java/src/org/apache/xpath/functions FuncExtFunction.java
  Log:
  Fix bugzilla bug report 18351.
  
  Set allowDetachToRelease flag to false, which allow caching of the arguments
  
  Reviewed by Henry Zongaro (zongaro@ca.ibm.com)
  
  Revision  Changes    Path
  1.23      +5 -2      xml-xalan/java/src/org/apache/xpath/functions/FuncExtFunction.java
  
  Index: FuncExtFunction.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xpath/functions/FuncExtFunction.java,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- FuncExtFunction.java	17 Oct 2003 20:59:24 -0000	1.22
  +++ FuncExtFunction.java	5 Feb 2004 20:41:54 -0000	1.23
  @@ -2,7 +2,7 @@
    * The Apache Software License, Version 1.1
    *
    *
  - * Copyright (c) 1999-2003 The Apache Software Foundation.  All rights 
  + * Copyright (c) 1999-2004 The Apache Software Foundation.  All rights 
    * reserved.
    *
    * Redistribution and use in source and binary forms, with or without
  @@ -226,7 +226,10 @@
         Expression arg = (Expression) m_argVec.elementAt(i);
         
         XObject xobj = arg.execute(xctxt);
  -
  +      /*
  +       * Should cache the arguments for func:function
  +       */
  +      xobj.allowDetachToRelease(false); 
         argVec.addElement(xobj);
       }
       //dml
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org