19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /* @test
25 * @bug 6261402 6824141
26 * @summary If rmid has an inherited channel that is not a server
27 * socket (such as it if was started using rsh/rcmd), then it should
28 * function normally.
29 * @author Peter Jones
30 *
31 * @library ../../testlibrary
32 * @modules java.base/sun.nio.ch
33 * java.rmi/sun.rmi.registry
34 * java.rmi/sun.rmi.server
35 * java.rmi/sun.rmi.transport
36 * java.rmi/sun.rmi.transport.tcp
37 * @build TestLibrary RMID ActivationLibrary
38 * @run main/othervm/timeout=240 InheritedChannelNotServerSocket
39 */
40
41 import java.io.IOException;
42 import java.net.Socket;
43 import java.net.ProtocolFamily;
44 import java.nio.channels.Channel;
45 import java.nio.channels.DatagramChannel;
46 import java.nio.channels.Pipe;
47 import java.nio.channels.ServerSocketChannel;
48 import java.nio.channels.SocketChannel;
49 import java.nio.channels.spi.AbstractSelector;
50 import java.nio.channels.spi.SelectorProvider;
51 import java.rmi.NotBoundException;
52 import java.rmi.Remote;
53 import java.rmi.RemoteException;
54 import java.rmi.activation.ActivationGroup;
55 import java.rmi.activation.ActivationSystem;
56 import java.rmi.registry.LocateRegistry;
57 import java.rmi.registry.Registry;
58 import java.rmi.server.UnicastRemoteObject;
|
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /* @test
25 * @bug 6261402 6824141
26 * @summary If rmid has an inherited channel that is not a server
27 * socket (such as it if was started using rsh/rcmd), then it should
28 * function normally.
29 * @author Peter Jones
30 *
31 * @library ../../testlibrary
32 * @modules java.base/sun.nio.ch
33 * java.rmi/sun.rmi.registry
34 * java.rmi/sun.rmi.server
35 * java.rmi/sun.rmi.transport
36 * java.rmi/sun.rmi.transport.tcp
37 * @build TestLibrary RMID ActivationLibrary
38 * @run main/othervm/timeout=240 InheritedChannelNotServerSocket
39 * @key intermittent
40 */
41
42 import java.io.IOException;
43 import java.net.Socket;
44 import java.net.ProtocolFamily;
45 import java.nio.channels.Channel;
46 import java.nio.channels.DatagramChannel;
47 import java.nio.channels.Pipe;
48 import java.nio.channels.ServerSocketChannel;
49 import java.nio.channels.SocketChannel;
50 import java.nio.channels.spi.AbstractSelector;
51 import java.nio.channels.spi.SelectorProvider;
52 import java.rmi.NotBoundException;
53 import java.rmi.Remote;
54 import java.rmi.RemoteException;
55 import java.rmi.activation.ActivationGroup;
56 import java.rmi.activation.ActivationSystem;
57 import java.rmi.registry.LocateRegistry;
58 import java.rmi.registry.Registry;
59 import java.rmi.server.UnicastRemoteObject;
|