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

Reviewed-by: joehw, alanb, lancea
This commit is contained in:
Naoto Sato 2022-08-22 16:26:37 +00:00
parent f95ee79603
commit aa9b8f04bf
2 changed files with 79 additions and 1 deletions

View file

@ -378,7 +378,6 @@ public class StreamDecoder extends Reader {
eof = true;
if ((cb.position() == 0) && (!bb.hasRemaining()))
break;
decoder.reset();
}
continue;
}