On Sat, 16 Oct 2021 12:30:44 GMT, Mark Sheppard <mshep...@openjdk.org> wrote:

> So Suggestion is refector remove Configuration to simplify the interface and 
> provide the BULITIN_RESOLVER and hostname as parameters to the 
> InetAddressResolverProvider::get method

During work on this JEP we've examined the approach suggested above, and there 
are few issues with it:
- `InetAddressResolverProvider.Configuration` interface API might evolve, e.g. 
there might be a need to pass additional configuration items.
- local hostname is a dynamic information, therefore it cannot be passed as 
string parameter to `InetAddressResolverProvider::get`.

It's been also discussed in the CSR comments 
[here](https://bugs.openjdk.java.net/browse/JDK-8274558)

-------------

PR: https://git.openjdk.java.net/jdk/pull/5822

Reply via email to