--- /home/cpdev/src/classpath/java/nio/charset/CharsetEncoder.java	2005-07-02 21:03:37.000000000 +0000
+++ java/nio/charset/CharsetEncoder.java	2005-06-30 05:34:43.000000000 +0000
@@ -183,11 +183,7 @@
       cr.throwException ();
 
     out.flip ();
-
-    // Unfortunately, resizing the actual bytebuffer array is required.
-    byte[] resized = new byte[out.remaining()];
-    out.get(resized);
-    return ByteBuffer.wrap(resized);
+    return out;
   }
 
   public final CoderResult encode (CharBuffer in, ByteBuffer out,
