Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/ikvm-fork.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsmallsql <smallsql>2011-07-09 14:50:12 +0400
committersmallsql <smallsql>2011-07-09 14:50:12 +0400
commitb52ab7950e60259eedbff67e19cee88335b04b09 (patch)
tree786cbc1fbbd39e217172888227821d8a8e603470 /openjdk/sun/nio/ch
parentdc46961844037b4db403862a1f35b7847ab6534e (diff)
dummy Constructor for Java 7
Diffstat (limited to 'openjdk/sun/nio/ch')
-rw-r--r--openjdk/sun/nio/ch/DatagramChannelImpl.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/openjdk/sun/nio/ch/DatagramChannelImpl.java b/openjdk/sun/nio/ch/DatagramChannelImpl.java
index 1f1707a3..6cbda443 100644
--- a/openjdk/sun/nio/ch/DatagramChannelImpl.java
+++ b/openjdk/sun/nio/ch/DatagramChannelImpl.java
@@ -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() {