From d3a3b329f3207b3523ebc82af2fc406f167100a5 Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Wed, 16 May 2012 23:05:58 +0900 Subject: [PATCH] Fix a compilation error --- .../io/netty/channel/socket/nio/NioSocketChannel.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/transport/src/main/java/io/netty/channel/socket/nio/NioSocketChannel.java b/transport/src/main/java/io/netty/channel/socket/nio/NioSocketChannel.java index 04ff8dcf16..ba351147b0 100644 --- a/transport/src/main/java/io/netty/channel/socket/nio/NioSocketChannel.java +++ b/transport/src/main/java/io/netty/channel/socket/nio/NioSocketChannel.java @@ -26,6 +26,7 @@ import io.netty.logging.InternalLogger; import io.netty.logging.InternalLoggerFactory; import java.io.IOException; +import java.net.InetSocketAddress; import java.net.SocketAddress; import java.nio.channels.SelectionKey; import java.nio.channels.SocketChannel; @@ -75,6 +76,16 @@ public class NioSocketChannel extends AbstractNioChannel implements io.netty.cha return config; } + @Override + public InetSocketAddress localAddress() { + return (InetSocketAddress) super.localAddress(); + } + + @Override + public InetSocketAddress remoteAddress() { + return (InetSocketAddress) super.remoteAddress(); + } + @Override protected SocketChannel javaChannel() { return (SocketChannel) super.javaChannel();