You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by ml...@apache.org on 2006/11/24 07:24:31 UTC

svn commit: r478777 - in /harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/javax/net: ServerSocketFactory.java SocketFactory.java

Author: mloenko
Date: Thu Nov 23 22:24:25 2006
New Revision: 478777

URL: http://svn.apache.org/viewvc?view=rev&rev=478777
Log:
change exception messages to follow RI

Modified:
    harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/javax/net/ServerSocketFactory.java
    harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/javax/net/SocketFactory.java

Modified: harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/javax/net/ServerSocketFactory.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/javax/net/ServerSocketFactory.java?view=diff&rev=478777&r1=478776&r2=478777
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/javax/net/ServerSocketFactory.java (original)
+++ harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/javax/net/ServerSocketFactory.java Thu Nov 23 22:24:25 2006
@@ -45,7 +45,8 @@
     }
 
     public ServerSocket createServerSocket() throws IOException {
-        throw new SocketException("Unbound server socket: not implemented");
+        // follow RI's behavior 
+        throw new SocketException("Unbound server sockets not implemented");
     }
 
     public abstract ServerSocket createServerSocket(int port)

Modified: harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/javax/net/SocketFactory.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/javax/net/SocketFactory.java?view=diff&rev=478777&r1=478776&r2=478777
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/javax/net/SocketFactory.java (original)
+++ harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/javax/net/SocketFactory.java Thu Nov 23 22:24:25 2006
@@ -47,7 +47,8 @@
     }
 
     public Socket createSocket() throws IOException {
-        throw new SocketException("Unbound socket: not implemented");
+        // follow RI's behavior 
+        throw new SocketException("Unconnected sockets not implemented");
     }
 
     public abstract Socket createSocket(String host, int port)