Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8345186

Incorrect @throws doc for MemorySegment::getString

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 24
    • 22, 23
    • core-libs

      The `MemorySegment::getString` overloads have an incorrect specification for

      @throws IndexOutOfBoundsException if {@code offset > byteSize() - (B + N)}, where:

      Instead, an IOOBE should be thrown if no null terminator is found in the region specified.

          [JDK-8345186] Incorrect @throws doc for MemorySegment::getString

          Dukebot added a comment -
          Changeset: 39cdadfb
          Branch: master
          Author: Per Minborg <pminborg@openjdk.org>
          Date: 2024-12-04 14:17:00 +0000
          URL: https://git.openjdk.org/jdk/commit/39cdadfb6ac8db7c84cf3259802d1f6ab26df8bf

          Dukebot added a comment - Changeset: 39cdadfb Branch: master Author: Per Minborg < pminborg@openjdk.org > Date: 2024-12-04 14:17:00 +0000 URL: https://git.openjdk.org/jdk/commit/39cdadfb6ac8db7c84cf3259802d1f6ab26df8bf

          Robo Duke added a comment -
          A pull request was submitted for review.
          Branch: master
          URL: https://git.openjdk.org/jdk/pull/22488
          Date: 2024-12-02 14:08:14 +0000

          Robo Duke added a comment - A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/22488 Date: 2024-12-02 14:08:14 +0000

            pminborg Per-Ake Minborg
            pminborg Per-Ake Minborg
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: