changeset 5970 | d4e98bbfb0be |
parent 5506 | 202f599c92aa |
child 7668 | d4a77089c587 |
--- a/jdk/test/java/nio/channels/Selector/WakeupOverflow.java Tue Jun 22 19:18:06 2010 -0700 +++ b/jdk/test/java/nio/channels/Selector/WakeupOverflow.java Wed Jun 23 20:19:29 2010 +0100 @@ -31,8 +31,12 @@ public class WakeupOverflow { public static void main( String[] args ) throws Exception { Selector selector = Selector.open(); - for(int i=0; i<10000; i++) { - selector.wakeup(); + try { + for(int i=0; i<10000; i++) { + selector.wakeup(); + } + } finally { + selector.close(); } } }