5071718: (bf) Add ByteBuffer.slice(int offset, int length)
Brian Burkhalter
brian.burkhalter at oracle.com
Fri Feb 22 23:34:23 UTC 2019
Please review the proposed fix [1] for issue [2] the CSR of which is [3]. The fix changes the existing package scope slice(int,int) method to be slice(index,length) instead of slice(position,limit) and modifies alignedSlice() accordingly. Overrides are added as needed for heap, direct, view, and StringChar buffers.
I suggest perhaps addressing the specification content first so that the CSR can move forward.
Thanks,
Brian
[1] http://cr.openjdk.java.net/~bpb/5071718/webrev.00/ <http://cr.openjdk.java.net/~bpb/5071718/webrev.00/>
[2] https://bugs.openjdk.java.net/browse/JDK-5071718 <https://bugs.openjdk.java.net/browse/JDK-5071718>
[3] https://bugs.openjdk.java.net/browse/JDK-8219608 <https://bugs.openjdk.java.net/browse/JDK-8219608>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20190222/90cd4fe1/attachment-0001.html>
More information about the nio-dev
mailing list