morten      01/11/22 06:05:30

  Modified:    java/src/org/apache/xalan/xsltc/runtime BasisLibrary.java
  Log:
  A small fix for the substring() function to output an empty string if the
  start index is an infinite value.
  PR:           bugzilla 4813
  Obtained from:        n/a
  Submitted by: [EMAIL PROTECTED]
  Reviewed by:  [EMAIL PROTECTED]
  
  Revision  Changes    Path
  1.29      +2 -1      
xml-xalan/java/src/org/apache/xalan/xsltc/runtime/BasisLibrary.java
  
  Index: BasisLibrary.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/runtime/BasisLibrary.java,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- BasisLibrary.java 2001/11/21 13:57:52     1.28
  +++ BasisLibrary.java 2001/11/22 14:05:30     1.29
  @@ -1,5 +1,5 @@
   /*
  - * @(#)$Id: BasisLibrary.java,v 1.28 2001/11/21 13:57:52 morten Exp $
  + * @(#)$Id: BasisLibrary.java,v 1.29 2001/11/22 14:05:30 morten Exp $
    *
    * The Apache Software License, Version 1.1
    *
  @@ -283,6 +283,7 @@
   
            if (Double.isNaN(start) || Double.isNaN(length))
                return(EMPTYSTRING);
  +         if (Double.isInfinite(start)) return(EMPTYSTRING);
            if (istart > strlen) return(EMPTYSTRING);
            if (isum < 0) return(EMPTYSTRING);
            if (istart < 0) istart = 0;
  
  
  

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

Reply via email to