harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mloe...@apache.org
Subject svn commit: r478777 - in /harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/javax/net: ServerSocketFactory.java SocketFactory.java
Date Fri, 24 Nov 2006 06:24:31 GMT
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)



Mime
View raw message