Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8220499 Update JDK networking tests for IPv6-only environments
  3. JDK-8220083

Remove hard-coded 127.0.0.1 loopback address in JDK networking tests

    XMLWordPrintable

Details

    • b12

    Backports

      Description

        Some of the JDK networking tests use hard-coded 127.0.0.1, loopback address. This works on IPv4 or IPv6&IPv4 network. However, with IPv6-only network, those tests with hard-coded address fail. The following fix would work for IPv4, IPv6&IPv4, and IPv6-only environment:

        - so = new Socket("127.0.0.1", port);
        + so = new Socket(InetAddress.getLoopbackAddress(), port);

        Attachments

          Issue Links

            Activity

              People

                aeubanks Arthur Eubanks
                jiangli Jiangli Zhou
                Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: