xalan-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mk...@apache.org
Subject cvs commit: xml-xalan/java/src/org/apache/xalan/xsltc/util IntegerArray.java
Date Thu, 10 Jul 2003 15:02:14 GMT
mkwan       2003/07/10 08:02:13

  Modified:    java/src/org/apache/xalan/xsltc/util IntegerArray.java
  Log:
  Fix for bugzilla 20074. Don't create an IntegerArray of size 0.
  
  Revision  Changes    Path
  1.7       +2 -2      xml-xalan/java/src/org/apache/xalan/xsltc/util/IntegerArray.java
  
  Index: IntegerArray.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/util/IntegerArray.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- IntegerArray.java	1 Apr 2003 20:37:41 -0000	1.6
  +++ IntegerArray.java	10 Jul 2003 15:02:13 -0000	1.7
  @@ -87,7 +87,7 @@
       }
   
       public Object clone() {
  -	final IntegerArray clone = new IntegerArray(_free);
  +	final IntegerArray clone = new IntegerArray(_free > 0 ? _free : 1);
   	System.arraycopy(_array, 0, clone._array, 0, _free);
   	clone._free = _free;
   	return clone;
  
  
  

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


Mime
View raw message