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

(ch) Minor typo in the ScatteringByteChannel.read(ByteBuffer[] dsts,int offset,int length) javadoc

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P5
    • 23
    • None
    • core-libs
    • b13

    Description

      https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/nio/channels/ScatteringByteChannel.html#read(java.nio.ByteBuffer%5B%5D,int,int)

      ==
      An invocation of this method attempts to read up to r bytes from this channel, where r is the total number of bytes remaining the specified subsequence of the given buffer array, that is,
      ==

      there's an "in" missing: "remaining in the specified"

      it should also be fixed up in the corresponding SocketChannel.read method javadoc description.

      Attachments

        Issue Links

          Activity

            People

              bpb Brian Burkhalter
              coffeys Sean Coffey
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: