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

[jira] Updated: (HARMONY-623) java.net.ServerSocket constrcutor should not throw IOException if "socksProxyHost" property is set.

     [ 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