RFR: 8305746: InitializeEncoding should cache Charset object instead of charset name

Peter Hofer phofer at openjdk.org
Tue Apr 18 11:12:42 UTC 2023


On Mon, 17 Apr 2023 17:47:04 GMT, Peter Hofer <phofer at openjdk.org> wrote:

> Store `Charset` object in `jnuEncoding` and use `String(byte[], Charset)` and `String.getBytes(Charset)` instead of passing the charset name.

@naotoj please find here my changes to `InitializeEncoding`.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/13499#issuecomment-1511828734


More information about the core-libs-dev mailing list