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

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

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b83
    • CPU:
      generic, x86
    • OS:
      generic, windows_xp
    • Verification:
      Verified

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: