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

(fc) Data transfer from FileChannel to itself causes hang in case of overlap

    XMLWordPrintable

Details

    • b11
    • os_x
    • Verified

    Backports

      Description

        When using transferFrom() on a FileChannel to transfer data from one region of the file to another, the call hangs, if the two regions overlap.

        Test class is attached.

        This should either simply work correctly or lead to an exception.
        If an exception is thrown, the conditions under which it is thrown must be documented in the javadocs.

        I have tested this on OS X only.
        The problem may also occur on other platforms.

        Attachments

          Issue Links

            Activity

              People

                bpb Brian Burkhalter
                hschreiber Hendrik Schreiber
                Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: