RFR: JDK-8134577 - Eliminate or standardize a replacement for sun.net.spi.nameservice.NameServiceDescriptor

Wang Weijun weijun.wang at oracle.com
Thu Oct 29 02:08:20 UTC 2015


> On Oct 28, 2015, at 4:56 AM, Mark Sheppard <mark.sheppard at oracle.com> wrote:
> 
> dynamic update of host / ip mappings updates are accommodated as seen per the tests
> http://cr.openjdk.java.net/~msheppar/8134577/webrev/test/sun/net/InetAddress/nameservice/simple/DefaultCaching.java.sdiff.html
> http://cr.openjdk.java.net/~msheppar/8134577/webrev/test/sun/net/InetAddress/nameservice/simple/CacheTest.java.sdiff.html

Oh, I would say the old SimpleNameService class is quite good. Since the current fix is meant for test only and the new system property is called jdk.internal something, can we just introduce an internal method that looks like SimpleNameService? Who wants to use it can add "@modules java.base/jdk.internal.net.SimpleNameService".

Yes I know this is quite against API encapsulation, but so is the internal system property.

Thanks
Max



More information about the security-dev mailing list