RFR: 8292043: Incorrect decoding near EOF for stateful decoders like UTF-16

Joe Wang joehw at openjdk.org
Fri Aug 19 20:13:49 UTC 2022


On Fri, 19 Aug 2022 16:32:02 GMT, Naoto Sato <naoto at openjdk.org> wrote:

> Fixing incorrect state handling with EOF in `StreamDecoder`. There's a `reset()` call to the decoder seeing the EOF before the last `decode()` operation to handle the state correctly. Removing the call should not affect other cases because `reset()` is issued down the execution.

Marked as reviewed by joehw (Reviewer).

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

PR: https://git.openjdk.org/jdk/pull/9945


More information about the nio-dev mailing list