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

(fc) FileChannel::transferFrom should support position > size()

    XMLWordPrintable

Details

    • b17
    • generic
    • generic
    • Verified

    Description

      FileChannel::transferFrom is specified not to transfer any bytes if position > size(). This is inconsistent with the positional FileChannel::write which extends the file in this case. FileChannel::transferFrom should be modified also to extend the file in this case.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: