RFR: 8286287: Reading file as UTF-16 causes Error which "shouldn't happen" [v2]

Naoto Sato naoto at openjdk.java.net
Wed May 11 15:52:59 UTC 2022


> `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.

Naoto Sato has updated the pull request incrementally with one additional commit since the last revision:

  Reverted the typo fix

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/8640/files
  - new: https://git.openjdk.java.net/jdk/pull/8640/files/0fa7cd38..d5a29e2b

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=8640&range=01
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=8640&range=00-01

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.java.net/jdk/pull/8640.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/8640/head:pull/8640

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


More information about the core-libs-dev mailing list