JDK 9 RFR of 8176317: (ch) Add print of timeout value to java/nio/channels/AsynchronousSocketChannel/Basic.java
Brian Burkhalter
brian.burkhalter at oracle.com
Tue Mar 7 18:51:25 UTC 2017
Please review this trivial fix for [1]:
--- a/test/java/nio/channels/AsynchronousSocketChannel/Basic.java
+++ b/test/java/nio/channels/AsynchronousSocketChannel/Basic.java
@@ -775,6 +775,7 @@
}
static void testTimeout(final long timeout, final TimeUnit unit) throws Exception {
+ System.out.printf("---- timeout: %d ms%n", unit.toMillis(timeout));
try (Server server = new Server()) {
This change could be helpful in determining the cause of [2] should it occur again.
Thanks,
Brian
[1] https://bugs.openjdk.java.net/browse/JDK-8176317
[2] https://bugs.openjdk.java.net/browse/JDK-8078590
More information about the nio-dev
mailing list