CSR :
|
|
Relates :
|
|
Relates :
|
Socket.setTimeout(-1) throws IAE, which seems reasonable, but doesn't specify this case. ServerSocket.setTimeout(-1) delegates to the SocketImpl.setOption(int,Object) method which only specifies SocketException. PlainSocketImpl throws IAE for this case so ServerSocket.setTimeout(-1) throws IAE. socket.connect(socketAddress, -1) throws IAE, which seems reasonable, but doesn't specify this case. These methods should be re-examined, maybe the methods can specify IAE to be thrown when the timeout is negative.
|