aboutsummaryrefslogtreecommitdiff
path: root/libjava/java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/java')
-rw-r--r--libjava/java/net/ServerSocket.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/libjava/java/net/ServerSocket.java b/libjava/java/net/ServerSocket.java
index 6b5544b..f4d1ecc 100644
--- a/libjava/java/net/ServerSocket.java
+++ b/libjava/java/net/ServerSocket.java
@@ -76,7 +76,7 @@ public class ServerSocket
private boolean closed = false;
/*
- * This is only used by java.nio.
+ * This constructor is only used by java.nio.
*/
// FIXME: Workaround a bug in gcj.
//ServerSocket (PlainSocketImpl impl) throws IOException
@@ -85,6 +85,16 @@ public class ServerSocket
this.impl = impl;
this.impl.create (true);
}
+
+ /*
+ * This method is only used by java.nio.
+ */
+ // FIXME: Workaround a bug in gcj.
+ //PlainSocketImpl getImpl()
+ SocketImpl getImpl()
+ {
+ return impl;
+ }
/**
* Constructor that simply sets the implementation.