8080550: java/rmi/server/useCustomRef/UseCustomRef.java failed with java.net.BindException intermittently
Reviewed-by: chegar
--- 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