RFR: 8300916: Re-examine the initialization of JNU Charset in StaticProperty [v3]

Mandy Chung mchung at openjdk.org
Wed Jan 25 19:43:43 UTC 2023


On Wed, 25 Jan 2023 07:41:52 GMT, Alan Bateman <alanb at openjdk.org> wrote:

> A simpler, and more reliable, would be to change Charset.defaultCharset to use standardProvider.charsetForName with the value of "file.encoding", and avoid the provider lookup completely.

This is a good observation.   The change looks good to me.

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

PR: https://git.openjdk.org/jdk/pull/12171


More information about the core-libs-dev mailing list