8080550: java/rmi/server/useCustomRef/UseCustomRef.java failed with java.net.BindException intermittently
authormli
Fri, 02 Dec 2016 01:11:33 -0800
changeset 42349 6975e71fe0c3
parent 42348 80b9d6545491
child 42350 9ad19b4f2c78
8080550: java/rmi/server/useCustomRef/UseCustomRef.java failed with java.net.BindException intermittently Reviewed-by: chegar
jdk/test/java/rmi/server/useCustomRef/UseCustomRef.java
--- a/jdk/test/java/rmi/server/useCustomRef/UseCustomRef.java	Fri Dec 02 00:47:00 2016 -0800
+++ b/jdk/test/java/rmi/server/useCustomRef/UseCustomRef.java	Fri Dec 02 01:11:33 2016 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1998, 2016, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -86,7 +86,7 @@
 
             System.err.println("creating Registry...");
 
-            registry = TestLibrary.createRegistryOnUnusedPort();
+            registry = TestLibrary.createRegistryOnEphemeralPort();
             int port = TestLibrary.getRegistryPort(registry);
             /*
              * create object with custom ref and bind in registry