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

Incorrect @throws doc for MemorySegment::getString

XMLWordPrintable

    • 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.

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

              Created:
              Updated:
              Resolved: