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

(fc) FileChannel.transferXXX async close and interrupt issues

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 22
    • 1.4.0, 22
    • core-libs
    • None
    • b05

    Description

      This issue tracks a number of bugs with FileChannel.transferTo/transerFrom that arise when the source or target channel is closed, or the thread is interrupted. More specifically:

      - The direct implementations operate on the raw FD and don't prevent the target/source channel from being closed during the transfer.

      - The transferTo/transferFrom methods are specified to throw ClosedByInterruptException after closing both channels. This is implemented inconsistently, and leaves one channel open in several cases.

      Attachments

        Issue Links

          Activity

            People

              alanb Alan Bateman
              alanb Alan Bateman
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: