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

(ch spec) ScatteringByteChannel.read(ByteBuffer[] dsts) contains minor typo

XMLWordPrintable

    • b83
    • generic, x86
    • generic, windows_xp
    • Verified

      Spec for java.nio.channels.ScatteringByteChannel.read(ByteBuffer[] dsts) says

      long read(ByteBuffer[] dsts)
                throws IOException
          Reads a sequence of bytes from this channel into the given buffers.
          An invocation of this method of the form c.read(dsts) behaves in exactly the same manner as the invocation
       c.read(dsts, 0, srcs.length);
                       ^^^^^^^^^^^
      It should be as dsts.length.

            iris Iris Clark
            rgutupalsunw Rajendra Gutupalli (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: