You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "George Harley (JIRA)" <ji...@apache.org> on 2006/06/19 21:41:30 UTC

[jira] Resolved: (HARMONY-600) java.net.Socket.connect(SocketAddress) throws a different exception from RI

     [ http://issues.apache.org/jira/browse/HARMONY-600?page=all ]
     
George Harley resolved HARMONY-600:
-----------------------------------

    Resolution: Fixed

Hi Richard, 

Patch applied in revision 415394. Please could you verify that it has been applied as expected. 

Thank you for this enhancement. 

Best regards, 
George

> 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