RFR: 8244202: Implementation of JEP 418: Internet-Address Resolution SPI [v12]
Chris Hegarty
chegar at openjdk.java.net
Thu Nov 11 09:04:42 UTC 2021
On Wed, 3 Nov 2021 13:23:36 GMT, Aleksei Efimov <aefimov at openjdk.org> wrote:
>> This change implements a new service provider interface for host name and address resolution, so that java.net.InetAddress API can make use of resolvers other than the platform's built-in resolver.
>>
>> The following API classes are added to `java.net.spi` package to facilitate this:
>> - `InetAddressResolverProvider` - abstract class defining a service, and is, essentially, a factory for `InetAddressResolver` resolvers.
>> - `InetAddressResolverProvider.Configuration ` - an interface describing the platform's built-in configuration for resolution operations that could be used to bootstrap a resolver construction, or to implement partial delegation of lookup operations.
>> - `InetAddressResolver` - an interface that defines methods for the fundamental forward and reverse lookup operations.
>> - `InetAddressResolver.LookupPolicy` - a class whose instances describe the characteristics of one forward lookup operation.
>>
>> More details in [JEP-418](https://openjdk.java.net/jeps/418).
>>
>> Testing: new and existing `tier1:tier3` tests
>
> Aleksei Efimov has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 18 commits:
>
> - Merge branch 'master' into JDK-8244202_JEP418_impl
> - Merge branch 'master' into JDK-8244202_JEP418_impl
> - Replace 'system' with 'the system-wide', move comment section
> - Add @ throws NPE to hosts file resolver javadoc
> - Changes to address review comments
> - Update tests to address SM deprecation
> - Merge branch 'master' into JDK-8244202_JEP418_impl
> - More javadoc updates to API classes
> - Review updates + move resolver docs to the provider class (CSR update to follow)
> - Change InetAddressResolver method names
> - ... and 8 more: https://git.openjdk.java.net/jdk/compare/a316c06e...0542df51
LGTM.
-------------
Marked as reviewed by chegar (Reviewer).
PR: https://git.openjdk.java.net/jdk/pull/5822
More information about the net-dev
mailing list