fix Java 6 build

Java 6's javac is not as smart as Java 7's when it comes to calling
overloaded methods from an inner class, so we have to be more
explicit.
This commit is contained in:
Joel Dice 2014-04-07 14:05:54 -06:00
parent 8f4c0e78ce
commit d00debd250

View File

@ -185,9 +185,10 @@ public class SocketChannel extends SelectableChannel
}
if (a == null) {
bind(socket, 0, 0);
SocketChannel.bind(socket, 0, 0);
} else {
bind(socket, a.getAddress().getRawAddress(), a.getPort());
SocketChannel.bind
(socket, a.getAddress().getRawAddress(), a.getPort());
}
}
}