4833719: (bf) Views of MappedByteBuffers are not MappedByteBuffers, and cannot be forced
brian.burkhalter at oracle.com
Wed Feb 20 15:51:43 UTC 2019
> On Feb 19, 2019, at 11:00 PM, Alan Bateman <Alan.Bateman at oracle.com> wrote:
> On 20/02/2019 01:20, Brian Burkhalter wrote:
>> https://bugs.openjdk.java.net/browse/JDK-4833719 <https://bugs.openjdk.java.net/browse/JDK-4833719>
>> Provide covariant return type overrides for asReadOnlyBuffer(), compact(), duplicate(), and slice() . If desirable, such overrides could also be provided for the bulk get() methods and the put*() methods.
> I don't have cycles to think about this one right now but I suspect this will require study to figure out if spec changes are needed. For example, we might have to clarify how force and loader should behave when invoked on a MBB that is a view or the result of a slice or duplicate.
Good point. I can investigate. Given the age of this issue it’s not pressing.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nio-dev