harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Liang (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-600) java.net.Socket.connect(SocketAddress) throws a different exception from RI
Date Tue, 20 Jun 2006 05:08:30 GMT
    [ http://issues.apache.org/jira/browse/HARMONY-600?page=comments#action_12416848 ] 

Richard Liang commented on HARMONY-600:
---------------------------------------

Hello George,

The fix looks good. Thanks a lot.

Richard.

> java.net.Socket.connect(SocketAddress) throws a different exception from RI
> ---------------------------------------------------------------------------
>
>          Key: HARMONY-600
>          URL: http://issues.apache.org/jira/browse/HARMONY-600
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Richard Liang
>     Assignee: George Harley
>  Attachments: luni.src.diff
>
> Hello,
> java.net.Socket.connect(SocketAddress) throws IOException instead of UnknownHostException
when the SocketAddress is an unknown host.
> RI 5.0 passes the following test while Harmony fails.
> public void test_socket_connect_unresolved() throws Exception {
>         Socket socket = new Socket();
>         try{
>             socket.connect(InetSocketAddress.createUnresolved("unknownhost",12345));
>             fail("Should throw UnknownHostException");
>         } catch (UnknownHostException e){
>             // expected
>         }
>     }
> Best regards,
> Richard

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message