diff options
Diffstat (limited to 'gnu/java/nio/ServerSocketChannelSelectionKey.java')
-rw-r--r-- | gnu/java/nio/ServerSocketChannelSelectionKey.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gnu/java/nio/ServerSocketChannelSelectionKey.java b/gnu/java/nio/ServerSocketChannelSelectionKey.java index 55847e49a..d00c2b748 100644 --- a/gnu/java/nio/ServerSocketChannelSelectionKey.java +++ b/gnu/java/nio/ServerSocketChannelSelectionKey.java @@ -15,8 +15,8 @@ General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Classpath; see the file COPYING. If not, write to the -Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA -02111-1307 USA. +Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +02110-1301 USA. Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and @@ -51,6 +51,8 @@ public final class ServerSocketChannelSelectionKey public int getNativeFD() { - return ((ServerSocketChannelImpl) ch).getNativeFD(); + NIOServerSocket socket = + (NIOServerSocket) ((ServerSocketChannelImpl) ch).socket(); + return socket.getPlainSocketImpl().getNativeFD(); } } |