RFR of JDK-8170338: com/sun/jndi/rmi/registry/RegistryContext/UnbindIdempotent.java failed with "Port already in use"

Hamlin Li huaming.li at oracle.com
Wed Nov 30 03:02:40 UTC 2016


Would you please review the patch?

bug: https://bugs.openjdk.java.net/browse/JDK-8170338
webrev: http://cr.openjdk.java.net/~mli/8170338/webrev.00/

Thank you
-Hamlin

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

diff -r 17b7d5ac2da7 
test/com/sun/jndi/rmi/registry/RegistryContext/UnbindIdempotent.java
--- 
a/test/com/sun/jndi/rmi/registry/RegistryContext/UnbindIdempotent.java 
Wed Nov 30 08:02:39 2016 +0800
+++ 
b/test/com/sun/jndi/rmi/registry/RegistryContext/UnbindIdempotent.java 
Tue Nov 29 18:59:30 2016 -0800
@@ -43,7 +43,7 @@
  public class UnbindIdempotent {

      public static void main(String[] args) throws Exception {
-        Registry registry = TestLibrary.createRegistryOnUnusedPort();
+        Registry registry = TestLibrary.createRegistryOnEphemeralPort();
          int registryPort = TestLibrary.getRegistryPort(registry);
          InitialContext ictx = new InitialContext();
          Context rctx;



More information about the core-libs-dev mailing list