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

(dc) DatagramChannel.disconnect throws SocketException with IPv4 socket and IPv6 enabled [macosx]

    XMLWordPrintable

Details

    • b38
    • generic, x86
    • os_x
    • Verified

    Backports

      Description

        nioDatagramChannel/DatagramChannelTest03
        nioDatagramChannel/DatagramChannelTest05

        SQE tests failed on MacOs. After calling disconnect() method an exception throws:

        java.net.SocketException: Invalid argument
        at sun.nio.ch.DatagramChannelImpl.disconnect0(Native Method)
        at sun.nio.ch.DatagramChannelImpl.disconnect(DatagramChannelImpl.java:740)
        at TestServer.go(DatagramChannelTest03.java:164)
        at TestThread.run(DatagramChannelTest03.java:240)
        java.net.SocketException: Invalid argument
        at sun.nio.ch.DatagramChannelImpl.disconnect0(Native Method)
        at sun.nio.ch.DatagramChannelImpl.disconnect(DatagramChannelImpl.java:740)
        at TestClient.go(DatagramChannelTest03.java:217)
        at TestThread.run(DatagramChannelTest03.java:240)


         
        A simple test case is attached to reflect this problem.

        Attachments

          Issue Links

            Activity

              People

                alanb Alan Bateman
                khazra Kurchi Subhra Hazra
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: