JDK 9 RFR of 8176317: (ch) Add print of timeout value to java/nio/channels/AsynchronousSocketChannel/Basic.java
Alan Bateman
Alan.Bateman at oracle.com
Wed Mar 8 16:10:46 UTC 2017
On 07/03/2017 18:51, Brian Burkhalter wrote:
> 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.
>
Looks okay.
More information about the nio-dev
mailing list