RFR: 8275007: Java fails to start with null charset if LC_ALL is set to certain locales

Alan Bateman alanb at openjdk.java.net
Sat Nov 6 16:23:37 UTC 2021


On Sat, 6 Nov 2021 16:04:13 GMT, Ichiroh Takiguchi <itakiguchi at openjdk.org> wrote:

> Could you explain more detail, why JEP-400 needs to touch sun.jnu.encoding system property's fallback ?

This is about running on unusual configurations where the native encoding (native.encoding and sun.jnu.encoding) doesn't name a charset in java.base. There has been several reports of NPE in such cases. Now that the default charset is UTF-8 it means there is a sane fallback so the VM can startup.

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

PR: https://git.openjdk.java.net/jdk/pull/6282


More information about the core-libs-dev mailing list