[8u-dev] RFR 8190690: Impact on krb5 test cases in the 8u-CPU nightly

Weijun Wang weijun.wang at oracle.com
Thu Nov 9 09:04:48 UTC 2017


Please review the fix at

   http://cr.openjdk.java.net/~weijun/8190690/webrev.00/

Before this fix, a static block in KDC.java set a customized name service provider. Some recent change (jdk8u161?) inside JDK might have added a name lookup before this provider is set and the provider is never loaded.

This is a <=jdk8u issue. We switch to a different mechanism in jdk9.

This fix just sets the provider right on the command line, for example:

- * @run main/othervm Basic
+ * @run main/othervm -Dsun.net.spi.nameservice.provider.1=ns,mock Basic

BasicProc.java and ReplayCacheTestProc.java launch child processes, the system property is also set on the child processes.

Thanks
Max




More information about the security-dev mailing list