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

Naoto Sato naoto at openjdk.org
Mon Aug 22 16:31:39 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.

This pull request has now been integrated.

Changeset: aa9b8f04
Author:    Naoto Sato <naoto at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/aa9b8f04bf74d5fa00f2b27895e7369abea3a930
Stats:     80 lines in 2 files changed: 79 ins; 1 del; 0 mod

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

Reviewed-by: joehw, alanb, lancea

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

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


More information about the nio-dev mailing list