RFR: 8258955: XBuffer.slice(int, int) fails to adjust index according to primitive size

Alan Bateman alanb at openjdk.java.net
Wed Dec 30 09:05:56 UTC 2020


On Tue, 29 Dec 2020 15:27:38 GMT, Chris Hegarty <chegar at openjdk.org> wrote:

> Scale the slice start index per carrier width, for views of direct byte buffers. This never worked correctly since being added in Java 13.

Thanks for picking this up  an oversight when it was added in Java 13 and something we missed when reviewing and testing.

As this is a P3 issue then we could potentially fix this in openjdk/jdk16 during RDP1. If not, it might be something to put into 16.0.1 or 16.0.2.

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

Marked as reviewed by alanb (Reviewer).

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


More information about the nio-dev mailing list