You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Paulex Yang (JIRA)" <ji...@apache.org> on 2006/08/25 09:53:24 UTC

[jira] Commented: (HARMONY-1278) [classlib][nio]Bug in SocketChannel.connect(SocketAddress)

    [ http://issues.apache.org/jira/browse/HARMONY-1278?page=comments#action_12430428 ] 
            
Paulex Yang commented on HARMONY-1278:
--------------------------------------

Jimmy, this patch caused two NIO tests failure: 
testSocket_Block_BasicStatusAfterConnect, testSocket_NonBlock_BasicStatusAfterConnect, 
and the error messages are same:
expected:</0.0.0.0> but was:<localhost/127.0.0.1>

junit.framework.AssertionFailedError: expected:</0.0.0.0> but was:<localhost/127.0.0.1> at org.apache.harmony.tests.java.nio.channels.SocketChannelTest.assertSocketAfterConnect(SocketChannelTest.java:429) at org.apache.harmony.tests.java.nio.channels.SocketChannelTest.testSocket_Block_BasicStatusAfterConnect(SocketChannelTest.java:288) at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:25)

have you found this error before?

> [classlib][nio]Bug in SocketChannel.connect(SocketAddress)
> ----------------------------------------------------------
>
>                 Key: HARMONY-1278
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1278
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Jimmy, Jing Lv
>         Assigned To: Paulex Yang
>         Attachments: Harmony1278.diff
>
>
> Hi,
>     SocketChannel refuse to connect some address. The cause of this bug is that it should bind to InetAddress.ANY instead of localhost.

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