JDK 9 RFR of 8039474: sun.misc.CharacterDecoder.decodeBuffer should use getBytes(iso8859-1)

Brian Burkhalter brian.burkhalter at oracle.com
Thu Apr 10 18:32:23 UTC 2014


Here’s an updated version with the encoder also modified for symmetry.

Brian

On Apr 10, 2014, at 11:23 AM, Xueming Shen <xueming.shen at oracle.com> wrote:

> String version has the cache mechanism of charset -> CharsetDe/Encoder, so if
> cache hits, you don't need to have String->Charset lookup.
> 
> We don't cache the "external" charset though for de/encode(Charset ...), so we
> always need to create a "new" CharsetDe/Encoder everytime the de/encode()
> method gets invoked.




More information about the core-libs-dev mailing list