# HG changeset patch # User bpb # Date 1487276783 28800 # Node ID 5fde21996e78ad2004b464f3d6d72d9dfadc999b # Parent c175b059160b1efcfcd6ce0fe3e76ad002207a74 8175033: (se) Improve internal timing of java/nio/channels/Selector/WakeupAfterClose.java Summary: Add print of expected ClosedSelectorException Reviewed-by: alanb diff -r c175b059160b -r 5fde21996e78 jdk/test/java/nio/channels/Selector/WakeupAfterClose.java --- a/jdk/test/java/nio/channels/Selector/WakeupAfterClose.java Thu Feb 16 18:28:01 2017 +0000 +++ b/jdk/test/java/nio/channels/Selector/WakeupAfterClose.java Thu Feb 16 12:26:23 2017 -0800 @@ -27,8 +27,9 @@ * @key intermittent */ +import java.io.IOException; +import java.nio.channels.ClosedSelectorException; import java.nio.channels.Selector; -import java.io.IOException; public class WakeupAfterClose { @@ -41,6 +42,9 @@ sel.select(); } catch (IOException x) { x.printStackTrace(); + } catch (ClosedSelectorException y) { + System.err.println + ("Caught expected ClosedSelectorException"); } } };