--- /home/cpdev/src/classpath/java/lang/StringBuilder.java	2005-07-02 21:03:34.000000000 +0000
+++ java/lang/StringBuilder.java	2005-06-30 05:34:39.000000000 +0000
@@ -472,7 +472,7 @@
    * @return this <code>StringBuilder</code>
    * @see String#valueOf(int)
    */
-  // This is native in libgcj, for efficiency.
+  // FIXME: this is native in libgcj in StringBuffer.
   public StringBuilder append(int inum)
   {
     return append(String.valueOf(inum));
@@ -932,13 +932,6 @@
    * @see #lastIndexOf(String, int)
    * @see String#regionMatches(boolean, int, String, int, int)
    */
-  private boolean regionMatches(int toffset, String other)
-  {
-    int len = other.count;
-    int index = other.offset;
-    while (--len >= 0)
-      if (value[toffset++] != other.value[index++])
-        return false;
-    return true;
-  }
+  // GCJ LOCAL: Native to access String internals properly.
+  private native boolean regionMatches(int toffset, String other);
 }
