diff --git a/classpath/java/nio/channels/ServerSocketChannel.java b/classpath/java/nio/channels/ServerSocketChannel.java index c8a691c5c5..61dfe60559 100644 --- a/classpath/java/nio/channels/ServerSocketChannel.java +++ b/classpath/java/nio/channels/ServerSocketChannel.java @@ -40,7 +40,7 @@ public class ServerSocketChannel extends SelectableChannel { channel.close(); } - public SocketChannel accept() throws Exception { + public SocketChannel accept() throws IOException { SocketChannel c = new SocketChannel(); c.socket = doAccept(); c.connected = true;