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

Typos in the JavaDocs for MemorySegment

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 22
    • 22
    • core-libs
    • None

      The throws clauses for MemorySegment::getAtIndex methods have a slight error in that it does not specify that byteSize() is actually layout.byteSize() in some places. For example:

      * @throws IndexOutOfBoundsException if {@code index * byteSize() > byteSize() - layout.byteSize()}.

      should be

      * @throws IndexOutOfBoundsException if {@code index * layout.byteSize() > byteSize() - layout.byteSize()}.

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

              Created:
              Updated:
              Resolved: