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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 7u4
    • Fix Version/s: tbd
    • Component/s: core-libs
    • Labels:
      None

      Description

      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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated: