You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Regis Xu (JIRA)" <ji...@apache.org> on 2008/09/17 10:19:44 UTC

[jira] Updated: (HARMONY-5984) [classlib][luni] - Should use addresses.hasMoreElements() to test whether the returned addresses are empty in MulticastSocketTest and NetworkInterfaceTest

     [ https://issues.apache.org/jira/browse/HARMONY-5984?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Regis Xu updated HARMONY-5984:
------------------------------

    Attachment: HARMONY-5984.diff

Would anyone want to try this?

> [classlib][luni] - Should use addresses.hasMoreElements() to test whether the returned addresses are empty in MulticastSocketTest and NetworkInterfaceTest
> ----------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-5984
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5984
>             Project: Harmony
>          Issue Type: Test
>          Components: Classlib
>    Affects Versions: 5.0M7
>            Reporter: Regis Xu
>             Fix For: 5.0M8
>
>         Attachments: HARMONY-5984.diff
>
>
> NetworkInterface.getInetAddresses would never return null. When there is no address empty Enumeration returned.
> So addresses.hasMoreElements() should be used to test whether the returned addresses are empty

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.