changeset 16188:08f81d321087

8080550: java/rmi/server/useCustomRef/UseCustomRef.java failed with java.net.BindException intermittently Reviewed-by: chegar
author mli
date Fri, 02 Dec 2016 01:11:33 -0800
parents 99dd72e05060
children 08f94540f074
files test/java/rmi/server/useCustomRef/UseCustomRef.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/test/java/rmi/server/useCustomRef/UseCustomRef.java	Fri Dec 02 00:47:00 2016 -0800
+++ b/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