Hi The CharsetEncoder/Decoder documentation doesn't say about the output buffer size; so, I removed the code which was unconditionally resizing that buffers (I only left conditional resizing of the output byte buffer since otherwise there would be possible a considerable space waste, e.g., for Utf8 case).
ChangeLog entries: * java/nio/charset/CharsetDecoder.java: (decode(ByteBuffer)): Remove resizing of the output character buffer since it is not required by the specification; update the comment. * java/nio/charset/CharsetEncoder.java: (encode(CharBuffer)): Resize the output byte buffer only in case of wasting 25% of space (or more); update the comment. Regards.
classpath-ivmai-23.diff
Description: Binary data