Integrated: 8257212: (bf spec) Clarify byte order of the buffer returned by CharBuffer.subsequence(int, int)
Conor Cleary
ccleary at openjdk.java.net
Fri Jan 15 14:10:03 UTC 2021
On Tue, 12 Jan 2021 13:47:54 GMT, Conor Cleary <ccleary at openjdk.org> wrote:
> Specification for CharBuffer::subSequence was missing clarification on the byte order of the returned CharBuffer. The returned order will always be the same as that of the original buffer. For example, subSequence() called on a CharBuffer with Little-Endian Byte Order will return a CharBuffer of Little-Endian Order. The specification has been changed to reflect this.
>
> In addition to this, some additional testing was added to improve test coverage of this behavior. Testing for the Byte Order of different types of Buffer is generated via the template Order-X.java.template which serves to verify the original Byte Order of a Buffer and subsequently verify that the same Byte Order is present after operations such as CharBuffer::subSequence
>
> CSR: https://bugs.openjdk.java.net/browse/JDK-8259638
This pull request has now been integrated.
Changeset: 707bce08
Author: Conor Cleary <ccleary at openjdk.org>
Committer: Chris Hegarty <chegar at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/707bce08
Stats: 194 lines in 8 files changed: 183 ins; 0 del; 11 mod
8257212: (bf spec) Clarify byte order of the buffer returned by CharBuffer.subsequence(int,int)
Reviewed-by: chegar, bpb, alanb
-------------
PR: https://git.openjdk.java.net/jdk/pull/2049
More information about the nio-dev
mailing list