On Thu, 5 May 2022 15:41:44 GMT, Naoto Sato <na...@openjdk.org> wrote:

>> Hello @naotoj .
>> If I just use `System.getProperty("sun.jnu.encoding")`, following testcases 
>> were failed.
>> 
>> java/lang/ProcessBuilder/SecurityManagerClinit.java 
>> java/lang/ProcessHandle/PermissionTest.java 
>> 
>> Please give me your suggestion again.
>
> Ah, OK. Never mind.

It might be worthwhile to cache the `sun.jnu.encoding` property value in 
jdk/internal/util/StaticProperty.
And perhaps even cache the Charset (not just the string).

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

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

Reply via email to