RFR: 8361299: (bf) CharBuffer.getChars(int,int,char[],int) violates pre-existing specification [v3]

Brian Burkhalter bpb at openjdk.org
Thu Jul 3 00:33:58 UTC 2025


> Modify `CharBuffer.getChars` to respect the class level specification that the provided buffer offset `srcBegin` is relative to the buffer's current position.

Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:

  8361299: Ensure [srcBegin,srcEnd) is contained in [0,limit()-position())

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/26104/files
  - new: https://git.openjdk.org/jdk/pull/26104/files/e9abd20f..a98e8dd4

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=26104&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=26104&range=01-02

  Stats: 19 lines in 2 files changed: 18 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/26104.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/26104/head:pull/26104

PR: https://git.openjdk.org/jdk/pull/26104


More information about the nio-dev mailing list