RFR: 8257212: (bf spec) Clarify byte order of the buffer returned by CharBuffer.subsequence(int, int) [v2]

Conor Cleary ccleary at openjdk.java.net
Wed Jan 13 10:08:14 UTC 2021


> 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

Conor Cleary has updated the pull request incrementally with one additional commit since the last revision:

  8257212: Updated copyright year

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/2049/files
  - new: https://git.openjdk.java.net/jdk/pull/2049/files/f194a7d1..4f90a205

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=2049&range=01
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=2049&range=00-01

  Stats: 8 lines in 8 files changed: 0 ins; 0 del; 8 mod
  Patch: https://git.openjdk.java.net/jdk/pull/2049.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/2049/head:pull/2049

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


More information about the nio-dev mailing list