On Fri, 3 Jun 2022 16:48:46 GMT, Naoto Sato <na...@openjdk.org> wrote:

> The code path calls `String.getBytesNoRepl()`, but it blindly replaces 
> unmappable characters with replacements if the encoder is an `ArrayEncoder`. 
> Changed only to do so if `doReplace` is `true` in 
> `String.encodeWithEncoder()`.

This pull request has now been integrated.

Changeset: 6fb84e2c
Author:    Naoto Sato <na...@openjdk.org>
URL:       
https://git.openjdk.java.net/jdk/commit/6fb84e2c9119bdb9c66dd49422bcab637bbd4008
Stats:     22 lines in 2 files changed: 4 ins; 11 del; 7 mod

8287541: Files.writeString fails to throw IOException for charset "windows-1252"

Reviewed-by: iris, bpb, alanb, jpai, lancea, aturbanov

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

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

Reply via email to