Incorrect @throws doc for MemorySegment::getString

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 24
    • Affects Version/s: 22, 23
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: