jdk/test/java/nio/channels/AsynchronousChannelGroup/Restart.java
changeset 3327 82e069ae54ab
parent 2057 3acf8e5e2ca0
child 3632 399359a027de
equal deleted inserted replaced
3326:31a5302fe6d4 3327:82e069ae54ab
    92                 .bind(new InetSocketAddress(0));
    92                 .bind(new InetSocketAddress(0));
    93 
    93 
    94         for (int i=0; i<count; i++) {
    94         for (int i=0; i<count; i++) {
    95             final CountDownLatch latch = new CountDownLatch(1);
    95             final CountDownLatch latch = new CountDownLatch(1);
    96 
    96 
    97             listener.accept(null, new CompletionHandler<AsynchronousSocketChannel,Void>() {
    97             listener.accept((Void)null, new CompletionHandler<AsynchronousSocketChannel,Void>() {
    98                 public void completed(AsynchronousSocketChannel ch, Void att) {
    98                 public void completed(AsynchronousSocketChannel ch, Void att) {
    99                     try {
    99                     try {
   100                         ch.close();
   100                         ch.close();
   101                     } catch (IOException ignore) { }
   101                     } catch (IOException ignore) { }
   102 
   102