On Tue, 28 Nov 2023 19:27:45 GMT, Naoto Sato <na...@openjdk.org> wrote:

>> src/java.base/share/classes/sun/nio/cs/StreamDecoder.java line 294:
>> 
>>> 292:     private void lockedFillZeroToPosition() throws IOException {
>>> 293:         ensureOpen();
>>> 294:         Arrays.fill(bb.array(), 0, bb.arrayOffset() + bb.position(), 
>>> (byte)0);
>> 
>> Should the `from` parameter be zero or `bb.arrayOffset()`?
>
> Right. Fixed.

The buffer is allocated in StreamDecoder so I assume the array offset is 0 
anyway, so I think they will be the same.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/16861#discussion_r1408394249

Reply via email to