RFR: 8345186: Incorrect @throws doc for MemorySegment::getString [v2]

Per Minborg pminborg at openjdk.org
Tue Dec 3 14:38:59 UTC 2024


> This PR proposes to correct errors in the `MemorySegment::getString` documentation.
> 
> There is a test in https://github.com/openjdk/jdk/pull/22451/files#diff-13a3535a65f1e0664e98bd2584196eb9d9a0ada951fd2dabfac8a484263235d8R271 that actually tests an Exception with the correct message is thrown if no null terminator can be found.

Per Minborg has updated the pull request incrementally with one additional commit since the last revision:

  Add back examples of terminator sizes

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/22488/files
  - new: https://git.openjdk.org/jdk/pull/22488/files/c4a4a998..7e6c3c31

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

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

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


More information about the core-libs-dev mailing list