You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by mk...@apache.org on 2003/07/10 17:02:14 UTC
cvs commit: xml-xalan/java/src/org/apache/xalan/xsltc/util IntegerArray.java
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