RFR: 4833719: (bf) Views of MappedByteBuffers are not MappedByteBuffers, and cannot be forced [v4]

Alan Bateman alanb at openjdk.java.net
Thu Mar 18 08:32:48 UTC 2021


On Tue, 16 Mar 2021 15:37:20 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

>> @adinn My comment wasn't to you, it's a concern that the no-arg force method has changed and the new behavior is proposed to be specified by this PR. I need to re-read the mails as it may be that this will need to be restored to use the capacity.
>
> The right hand limit should in all cases be open so the current no-arg doc is wrong.
> 
> As for `force()` changing from `[0,capacity())` to `[0,limit())`, I don't know exactly why that happened or when but it definitely changed since Java 8.

np, and I assume we'll continue this PR assuming JDK-8263742 will be integrated.

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

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


More information about the nio-dev mailing list