FileInputStream.transferTo may not transfer all bytes

XMLWordPrintable

    • Type: Bug
    • Resolution: Not an Issue
    • Priority: P4
    • None
    • Affects Version/s: 22
    • Component/s: core-libs
    • None

      FIS.transferTo assumes that all bytes are transferred by FC.transferTo. There are cases where a short write is possible, meaning not all bytes that are transferred. FIS.transferTo needs to use a loop to ensure all bytes are transferred.

      In passing, the {@inheritDoc} is not needed.

            Assignee:
            Brian Burkhalter
            Reporter:
            Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: