< prev index next >

test/java/nio/channels/spi/SelectorProvider/inheritedChannel/StateTest.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 31,44 **** * The test works by launching a test service (called StateTestService) so * that it inherits each type of channel. The test service checks the * socket state and replies back to this class via an out-of-band * channel. */ ! import java.io.*; ! import java.net.*; import java.nio.ByteBuffer; ! import java.nio.channels.*; public class StateTest { private static int failures = 0; --- 31,48 ---- * The test works by launching a test service (called StateTestService) so * that it inherits each type of channel. The test service checks the * socket state and replies back to this class via an out-of-band * channel. */ ! import java.io.IOException; ! import java.net.InetSocketAddress; import java.nio.ByteBuffer; ! import java.nio.channels.DatagramChannel; ! import java.nio.channels.SelectionKey; ! import java.nio.channels.Selector; ! import java.nio.channels.ServerSocketChannel; ! import java.nio.channels.SocketChannel; public class StateTest { private static int failures = 0;
< prev index next >