RFR: 8286287: Reading file as UTF-16 causes Error which "shouldn't happen"
Brian Burkhalter
bpb at openjdk.java.net
Wed May 11 15:32:59 UTC 2022
On Tue, 10 May 2022 20:22:39 GMT, Naoto Sato <naoto at openjdk.org> wrote:
> `String.decodeWithDecoder()` method requires the `CharsetDecoder` parameter replaces on malformed/unmappable characters with replacements. However, there was a code path that lacked to set the `CodingErrorAction.REPLACE` on the decoder. Unrelated, one typo in a test was also fixed.
Marked as reviewed by bpb (Reviewer).
-------------
PR: https://git.openjdk.java.net/jdk/pull/8640
More information about the core-libs-dev
mailing list