You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Mikhail Markov (JIRA)" <ji...@apache.org> on 2007/02/12 18:37:06 UTC

[jira] Commented: (HARMONY-3159) [classlib][nio]refactor testcases in DatagramChannelTest to avoid getting port unsafely

    [ https://issues.apache.org/jira/browse/HARMONY-3159?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12472357 ] 

Mikhail Markov commented on HARMONY-3159:
-----------------------------------------

Tim, unfortunately, this issue does not duplicated HARMONY-3157 but suppliment with it:
H-3157 is about modifying DatagramSocket-s creation with arbitrary port number which could be done in the code directly
This JIRA is about modifying InetSocketAddress-s creation - it also should be fixed, but it's not obvious for now how to do this.

Could you please reopen this JIRA?

> [classlib][nio]refactor testcases in DatagramChannelTest to avoid getting port unsafely
> ---------------------------------------------------------------------------------------
>
>                 Key: HARMONY-3159
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3159
>             Project: Harmony
>          Issue Type: Sub-task
>          Components: Classlib
>            Reporter: Tony Wu
>         Assigned To: Tim Ellison
>
> There are following lines in setUp(), 
>        this.localAddr1 = new InetSocketAddress("127.0.0.1",
>                 Support_PortManager.getNextPort());
>         this.localAddr2 = new InetSocketAddress("127.0.0.1",
>                 Support_PortManager.getNextPort());
> Support_PortManager may be not necessary here because these addresses could be get after binding on 0 port.

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