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

(dc) DatagramChannel::connect change the local address type to IPv6 (macOS)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 7u4
    • core-libs
    • None

      If a DatagramChannel is bound to an IPv4 address, then connected to an IPv6 address, DatagramChannel::getLocalAddress() returns an IPv4-compatible IPv6 address.

      java.lang.AssertionError: local address after connect should be /127.0.0.1:55179 found /0:0:0:0:0:0:7f00:1:55179

            dfuchs Daniel Fuchs
            dfuchs Daniel Fuchs
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: