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

(fc) FileChannel.transferTo to DatagramChannel fails with "Operation not supported" (sol)

    Details

    • Subcomponent:
    • Resolved In Build:
      b04
    • CPU:
      x86, sparc
    • OS:
      linux, solaris_10
    • Verification:
      Verified

      Backports

        Description

        When user sets DatagramChannel to 3rd arg. of transferTo(),
        IOException occurs.

        CONFIGURATION:
        OS : Solaris 10
        JDK : 1.4.2_20

        REPRODUCE:

        1. Compile the attached transferToDatagram.java
        2. Invoke java transferToDatagram <org file> <target file> as follows.
         Then you can see an IOException as follows.

        goedel[50]% java transferToDatagram from to
        transferTo : pos=0, len=1708, pos+len=1708
        Client
        java.io.IOException: Operation not supported on transport endpoint
                at sun.nio.ch.FileChannelImpl.transferTo0(Native Method)
                at sun.nio.ch.FileChannelImpl.transferToDirectly(FileChannelImpl.java:39
        2)
                at sun.nio.ch.FileChannelImpl.transferTo(FileChannelImpl.java:487)
                at transferToDatagram.main(transferToDatagram.java:57)
        goedel[51]%

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  karunakar Karunakar Gajjala (Inactive)
                  Reporter:
                  tbaba Tadayuki Baba (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: