RFR: 8345186: Incorrect @throws doc for MemorySegment::getString

Per Minborg pminborg at openjdk.org
Tue Dec 3 13:31:47 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.

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

Commit messages:
 - Update doc after comments
 - Fix typo
 - Correct docs for the MemorySegment::getString overloads

Changes: https://git.openjdk.org/jdk/pull/22488/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=22488&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8345186
  Stats: 11 lines in 1 file changed: 0 ins; 4 del; 7 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