Re: New candidate JEP: 418: Internet-Address Resolution SPI

2021-09-03 Thread mark . reinhold
A suggestion, if I may ... Consider using the term “resolver” instead of “name service,” especially in the names of the SPI classes and interfaces. That would avoid confusing the service of looking up names and addresses with the service of providing a service to look up names and addresses. That

New candidate JEP: 418: Internet-Address Resolution SPI

2021-09-03 Thread mark . reinhold
https://openjdk.java.net/jeps/418 Summary: Define a service-provider interface (SPI) for host name and address resolution, so that java.net.InetAddress can make use of resolvers other than the platform's built-in resolver. - Mark

Re: RFR: 8273261: Replace 'while' cycles with iterator with enhanced-for in java.base

2021-09-03 Thread Sean Mullan
On Wed, 1 Sep 2021 07:37:53 GMT, Andrey Turbanov wrote: > There are few places in code where manual while loop is used with Iterator to > iterate over Collection. > Instead of manual while cycles it's preferred to use enhanced-for cycle > instead: it's less verbose, makes code easier to read a