You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by sa...@apache.org on 2002/05/15 05:43:16 UTC
cvs commit: xml-xerces/java/src/org/apache/xerces/impl/xs/identity IdentityConstraint.java
sandygao 02/05/14 20:43:16
Modified: java/src/org/apache/xerces/impl/xs/identity
IdentityConstraint.java
Log:
Fixing bug 9022: arrayCopy should take oldArray.length, instead of newSize.
Revision Changes Path
1.3 +2 -2 xml-xerces/java/src/org/apache/xerces/impl/xs/identity/IdentityConstraint.java
Index: IdentityConstraint.java
===================================================================
RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/impl/xs/identity/IdentityConstraint.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- IdentityConstraint.java 29 Jan 2002 01:15:15 -0000 1.2
+++ IdentityConstraint.java 15 May 2002 03:43:16 -0000 1.3
@@ -61,7 +61,7 @@
* Base class of Schema identity constraint.
*
* @author Andy Clark, IBM
- * @version $Id: IdentityConstraint.java,v 1.2 2002/01/29 01:15:15 lehors Exp $
+ * @version $Id: IdentityConstraint.java,v 1.3 2002/05/15 03:43:16 sandygao Exp $
*/
public abstract class IdentityConstraint {
@@ -193,7 +193,7 @@
static final Field[] resize(Field[] oldArray, int newSize) {
Field[] newArray = new Field[newSize];
- System.arraycopy(oldArray, 0, newArray, 0, newSize);
+ System.arraycopy(oldArray, 0, newArray, 0, oldArray.length);
return newArray;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org