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

Typos in the JavaDocs for MemorySegment

    XMLWordPrintable

Details

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

    Description

      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()}.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: