On Thu, 8 Jun 2023 15:47:43 GMT, Darragh Clarke <[email protected]> wrote:
>> No that's precisely what we want to avoid. Because how "localhost" maps to
>> an InetAddress depends on the machine configuration, which is a recipe for
>> intermittent failures.
>>
>> I'd suggest:
>>
>> URL url = URIBuilder.newBuilder()
>> .scheme("http")
>> .localhost()
>>
>> (which is actually the same)
>
> At a glance there isn't a `.localhost()` only a `.loopback()` is that what
> you were referring to?
Yes! Sorry - my mistake.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/14177#discussion_r1223282455