UnresolvedAddressException not thrown for incorrect hostname

XMLWordPrintable

      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.

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

              Created:
              Updated:
              Resolved: