jdk/test/java/rmi/activation/rmidViaInheritedChannel/RmidViaInheritedChannel.java
equal
deleted
inserted
replaced
20 * CA 95054 USA or visit www.sun.com if you need additional information or |
20 * CA 95054 USA or visit www.sun.com if you need additional information or |
21 * have any questions. |
21 * have any questions. |
22 */ |
22 */ |
23 |
23 |
24 /* @test |
24 /* @test |
25 * @bug 4295885 |
25 * @bug 4295885 6824141 |
26 * @summary rmid should be startable from inetd |
26 * @summary rmid should be startable from inetd |
27 * @author Ann Wollrath |
27 * @author Ann Wollrath |
28 * |
28 * |
29 * @library ../../testlibrary |
29 * @library ../../testlibrary |
30 * @build RMID ActivationLibrary |
30 * @build RMID ActivationLibrary |
34 |
34 |
35 import java.io.IOException; |
35 import java.io.IOException; |
36 import java.net.InetAddress; |
36 import java.net.InetAddress; |
37 import java.net.InetSocketAddress; |
37 import java.net.InetSocketAddress; |
38 import java.net.ServerSocket; |
38 import java.net.ServerSocket; |
|
39 import java.net.ProtocolFamily; |
39 import java.nio.channels.*; |
40 import java.nio.channels.*; |
40 import java.nio.channels.spi.*; |
41 import java.nio.channels.spi.*; |
41 import java.rmi.Remote; |
42 import java.rmi.Remote; |
42 import java.rmi.NotBoundException; |
43 import java.rmi.NotBoundException; |
43 import java.rmi.activation.ActivationGroup; |
44 import java.rmi.activation.ActivationGroup; |
124 throws IOException |
125 throws IOException |
125 { |
126 { |
126 return provider.openDatagramChannel(); |
127 return provider.openDatagramChannel(); |
127 } |
128 } |
128 |
129 |
|
130 public DatagramChannel openDatagramChannel(ProtocolFamily family) |
|
131 throws IOException |
|
132 { |
|
133 return provider.openDatagramChannel(family); |
|
134 } |
|
135 |
129 public Pipe openPipe() |
136 public Pipe openPipe() |
130 throws IOException |
137 throws IOException |
131 { |
138 { |
132 return provider.openPipe(); |
139 return provider.openPipe(); |
133 } |
140 } |