harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Zhang (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-623) java.net.ServerSocket constrcutor should not throw IOException if "socksProxyHost" property is set.
Date Wed, 21 Jun 2006 10:52:30 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-623?page=all ]

Andrew Zhang updated HARMONY-623:
---------------------------------

    Attachment: luni.src.diff

Hello,

Would you please try my patch? 

Thanks!

> java.net.ServerSocket constrcutor should not throw IOException if "socksProxyHost" property
is set.
> ---------------------------------------------------------------------------------------------------
>
>          Key: HARMONY-623
>          URL: http://issues.apache.org/jira/browse/HARMONY-623
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Andrew Zhang
>     Priority: Minor
>  Attachments: luni.src.diff
>
> Harmony java.net.ServerSocket constrcutor throws IOException if "socksProxyHost" property
is set while RI doesn't.
>  Following test reproduces the bug.
>  public void test_ConstructorI_SocksSet() throws IOException {
>         ServerSocket ss = null;
>         Properties props = (Properties) System.getProperties().clone();
>         try {
>             System.setProperty("socksProxyHost", "127.0.0.1");
>             System.setProperty("socksProxyPort", "12345");
>             ss = new ServerSocket(Support_PortManager.getNextPort());
>         } finally {
>             System.setProperties(props);
>             if (null != ss) {
>                 ss.close();
>             }
>         }
>     }
> Test result:
> RI passes but Harmony fails.
> I'll try to fix the problem. Thanks.

-- 
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