RFR of JDK-8080550: java/rmi/server/useCustomRef/UseCustomRef.java failed with java.net.BindException intermittently
Hamlin Li
huaming.li at oracle.com
Fri Dec 2 09:06:42 UTC 2016
Would you please review the below patch?
bug: https://bugs.openjdk.java.net/browse/JDK-8080550
webrev: http://cr.openjdk.java.net/~mli/8080550/
Thank you
-Hamlin
------------------------------------------------------------------------
diff -r 99dd72e05060 test/java/rmi/server/useCustomRef/UseCustomRef.java
--- 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:05:36 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
More information about the core-libs-dev
mailing list