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

UnresolvedAddressException not thrown for incorrect hostname

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Not an Issue
    • Affects Version/s: 8u201
    • Fix Version/s: None
    • Component/s: core-libs

      Description

      Due to the implementation of getaddrinfo on non-Windows platforms InetAddress.getAllByName behaves differently across platforms. On non-Windows platforms a lookup of "127.0.0.1 test" will successfully resolve, on Windows an UnknownHostException will be thrown. RFC 952 (https://tools.ietf.org/html/rfc952) appears to preclude hostnames with spaces.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                robm Robert Mckenna
                Reporter:
                shadowbug Shadow Bug
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: