You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by py...@apache.org on 2006/07/19 12:15:06 UTC
svn commit: r423423 -
/incubator/harmony/enhanced/classlib/trunk/modules/nio/src/main/java/org/apache/harmony/nio/internal/SocketChannelImpl.java
Author: pyang
Date: Wed Jul 19 03:15:03 2006
New Revision: 423423
URL: http://svn.apache.org/viewvc?rev=423423&view=rev
Log:
Fix for HARMONY-914([classlib][nio] refine o.a.h.nio.SocketChannelImpl)
Modified:
incubator/harmony/enhanced/classlib/trunk/modules/nio/src/main/java/org/apache/harmony/nio/internal/SocketChannelImpl.java
Modified: incubator/harmony/enhanced/classlib/trunk/modules/nio/src/main/java/org/apache/harmony/nio/internal/SocketChannelImpl.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/nio/src/main/java/org/apache/harmony/nio/internal/SocketChannelImpl.java?rev=423423&r1=423422&r2=423423&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/nio/src/main/java/org/apache/harmony/nio/internal/SocketChannelImpl.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/nio/src/main/java/org/apache/harmony/nio/internal/SocketChannelImpl.java Wed Jul 19 03:15:03 2006
@@ -57,8 +57,6 @@
// Class variables
// -------------------------------------------------------------------
- private static final int MAX_PORT_NUMBER = 65535;
-
private static final int EOF = -1;
private static final String ERRMSG_SOCKET_NONBLOCKING_WOULD_BLOCK = "The socket is marked as nonblocking operation would block";
@@ -96,9 +94,6 @@
// connect success
private static final int CONNECT_SUCCESS = 0;
- // error msg
- private static final String ERRCODE_PORT_ERROR = "K0032"; //$NON-NLS-1$
-
// a address of localhost
private static final byte[] localAddrArray = { 127, 0, 0, 1 };
@@ -242,10 +237,6 @@
int port = inetSocketAddress.getPort();
String hostName = inetSocketAddress.getAddress().getHostName();
- if (port < 0 || port > MAX_PORT_NUMBER) {
- throw new IllegalArgumentException(Msg
- .getString(ERRCODE_PORT_ERROR));
- }
// security check
SecurityManager sm = System.getSecurityManager();
if (sm != null) {