6615656: Removed unimplemented java.net methods
Reviewed-by: jccollet
This commit is contained in:
parent
b02a978ac4
commit
b8383dba86
jdk/src
share/classes/java/net
solaris/classes/java/net
windows/classes/java/net
@ -664,7 +664,6 @@ abstract class AbstractPlainSocketImpl extends SocketImpl
|
||||
abstract void socketSetOption(int cmd, boolean on, Object value)
|
||||
throws SocketException;
|
||||
abstract int socketGetOption(int opt, Object iaContainerObj) throws SocketException;
|
||||
abstract int socketGetOption1(int opt, Object iaContainerObj, FileDescriptor fd) throws SocketException;
|
||||
abstract void socketSendUrgentData(int data)
|
||||
throws IOException;
|
||||
|
||||
|
@ -425,8 +425,6 @@ public final class NetworkInterface {
|
||||
return virtual;
|
||||
}
|
||||
|
||||
private native static long getSubnet0(String name, int ind) throws SocketException;
|
||||
private native static Inet4Address getBroadcast0(String name, int ind) throws SocketException;
|
||||
private native static boolean isUp0(String name, int ind) throws SocketException;
|
||||
private native static boolean isLoopback0(String name, int ind) throws SocketException;
|
||||
private native static boolean supportsMulticast0(String name, int ind) throws SocketException;
|
||||
|
@ -76,9 +76,6 @@ class PlainSocketImpl extends AbstractPlainSocketImpl
|
||||
|
||||
native int socketGetOption(int opt, Object iaContainerObj) throws SocketException;
|
||||
|
||||
native int socketGetOption1(int opt, Object iaContainerObj, FileDescriptor fd)
|
||||
throws SocketException;
|
||||
|
||||
native void socketSendUrgentData(int data) throws IOException;
|
||||
|
||||
}
|
||||
|
@ -218,9 +218,6 @@ class DualStackPlainSocketImpl extends AbstractPlainSocketImpl
|
||||
return value;
|
||||
}
|
||||
|
||||
int socketGetOption1(int opt, Object iaContainerObj, FileDescriptor fd)
|
||||
throws SocketException {return 0;} // un-implemented REMOVE
|
||||
|
||||
void socketSendUrgentData(int data) throws IOException {
|
||||
int nativefd = checkAndReturnNativeFD();
|
||||
sendOOB(nativefd, data);
|
||||
|
@ -199,8 +199,5 @@ class TwoStacksPlainSocketImpl extends AbstractPlainSocketImpl
|
||||
|
||||
native int socketGetOption(int opt, Object iaContainerObj) throws SocketException;
|
||||
|
||||
native int socketGetOption1(int opt, Object iaContainerObj, FileDescriptor fd)
|
||||
throws SocketException;
|
||||
|
||||
native void socketSendUrgentData(int data) throws IOException;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user