From b3accf1b308a04ce11f239ebb20bcca74ea5cc4d Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Wed, 13 Oct 2010 13:38:31 -0600 Subject: [PATCH] ServerSocketChannel throws IOException, not Exception --- classpath/java/nio/channels/ServerSocketChannel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;