Index: java/lang/StringBuilder.java =================================================================== RCS file: /cvsroot/classpath/classpath/java/lang/StringBuilder.java,v retrieving revision 1.1.2.7 diff -u -3 -p -u -r1.1.2.7 StringBuilder.java --- java/lang/StringBuilder.java 21 Feb 2005 02:50:40 -0000 1.1.2.7 +++ java/lang/StringBuilder.java 2 Apr 2005 21:31:29 -0000 @@ -205,7 +205,7 @@ public final class StringBuilder int max = value.length * 2 + 2; minimumCapacity = (minimumCapacity < max ? max : minimumCapacity); char[] nb = new char[minimumCapacity]; - System.arraycopy(value, 0, nb, 0, count); + VMSystem.arraycopy(value, 0, nb, 0, count); value = nb; } } @@ -284,7 +284,7 @@ public final class StringBuilder { if (srcOffset < 0 || srcEnd > count || srcEnd < srcOffset) throw new StringIndexOutOfBoundsException(); - System.arraycopy(value, srcOffset, dst, dstOffset, srcEnd - srcOffset); + VMSystem.arraycopy(value, srcOffset, dst, dstOffset, srcEnd - srcOffset); } /** @@ -354,7 +354,7 @@ public final class StringBuilder { int len = stringBuffer.count; ensureCapacity(count + len); - System.arraycopy(stringBuffer.value, 0, value, count, len); + VMSystem.arraycopy(stringBuffer.value, 0, value, count, len); count += len; } return this; @@ -394,7 +394,7 @@ public final class StringBuilder if (offset < 0 || count < 0 || offset > data.length - count) throw new StringIndexOutOfBoundsException(); ensureCapacity(this.count + count); - System.arraycopy(data, offset, value, this.count, count); + VMSystem.arraycopy(data, offset, value, this.count, count); this.count += count; return this; } @@ -538,7 +538,7 @@ public final class StringBuilder // This will unshare if required. ensureCapacity(count); if (count - end != 0) - System.arraycopy(value, end, value, start, count - end); + VMSystem.arraycopy(value, end, value, start, count - end); count -= end - start; return this; } @@ -579,7 +579,7 @@ public final class StringBuilder ensureCapacity(count + delta); if (delta != 0 && end < count) - System.arraycopy(value, end, value, end + delta, count - end); + VMSystem.arraycopy(value, end, value, end + delta, count - end); str.getChars(0, len, value, start); count += delta; @@ -657,8 +657,8 @@ public final class StringBuilder || str_offset < 0 || str_offset > str.length - len) throw new StringIndexOutOfBoundsException(); ensureCapacity(count + len); - System.arraycopy(value, offset, value, offset + len, count - offset); - System.arraycopy(str, str_offset, value, offset, len); + VMSystem.arraycopy(value, offset, value, offset + len, count - offset); + VMSystem.arraycopy(str, str_offset, value, offset, len); count += len; return this; } @@ -697,7 +697,7 @@ public final class StringBuilder str = "null"; int len = str.count; ensureCapacity(count + len); - System.arraycopy(value, offset, value, offset + len, count - offset); + VMSystem.arraycopy(value, offset, value, offset + len, count - offset); str.getChars(0, len, value, offset); count += len; return this; @@ -748,7 +748,7 @@ public final class StringBuilder if (offset < 0 || offset > count) throw new StringIndexOutOfBoundsException(offset); ensureCapacity(count + 1); - System.arraycopy(value, offset, value, offset + 1, count - offset); + VMSystem.arraycopy(value, offset, value, offset + 1, count - offset); value[offset] = ch; count++; return this;