зеркало из https://github.com/mono/ikvm-fork.git
dummy Constructor for Java 7
This commit is contained in:
Родитель
dc46961844
Коммит
b52ab7950e
|
@ -25,6 +25,8 @@
|
|||
|
||||
package sun.nio.ch;
|
||||
|
||||
import ikvm.internal.NotYetImplementedError;
|
||||
|
||||
import java.io.FileDescriptor;
|
||||
import java.io.IOException;
|
||||
import java.net.*;
|
||||
|
@ -117,6 +119,13 @@ class DatagramChannelImpl
|
|||
}
|
||||
}
|
||||
|
||||
public DatagramChannelImpl(SelectorProvider sp, ProtocolFamily family)
|
||||
throws IOException
|
||||
{
|
||||
super(sp);
|
||||
throw new NotYetImplementedError(); //TODO JDK7
|
||||
}
|
||||
|
||||
public DatagramChannelImpl(SelectorProvider sp, FileDescriptor fd)
|
||||
throws IOException
|
||||
{
|
||||
|
@ -425,7 +434,7 @@ class DatagramChannelImpl
|
|||
}
|
||||
}
|
||||
|
||||
public void bind(SocketAddress local) throws IOException {
|
||||
public DatagramChannel bind(SocketAddress local) throws IOException {
|
||||
synchronized (readLock) {
|
||||
synchronized (writeLock) {
|
||||
synchronized (stateLock) {
|
||||
|
@ -441,6 +450,7 @@ class DatagramChannelImpl
|
|||
}
|
||||
}
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
public boolean isConnected() {
|
||||
|
|
Загрузка…
Ссылка в новой задаче