harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Ellison (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (HARMONY-2936) [classlib][luni]InetAddress.getByName does not support some textual representations
Date Wed, 03 Jan 2007 10:45:27 GMT

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

Tim Ellison reassigned HARMONY-2936:
------------------------------------

    Assignee: Tim Ellison

> [classlib][luni]InetAddress.getByName does not support some textual representations 
> ------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2936
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2936
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Tony Wu
>         Assigned To: Tim Ellison
>         Attachments: harmony-2936.diff
>
>
> InetAddress.getByName does not support following textual representations 
> d.d.d
> d.d
> d
> testcase below shows the problem
> public void test_getByName_ddd() throws IOException {
>         InetAddress i = InetAddress.getByName("1.2.3");
>         assertEquals("1.2.0.3",i.getHostAddress());
> }
> public void test_getByName_dd() throws IOException {
>         InetAddress  i = InetAddress.getByName("1.2");
>         assertEquals("1.0.0.2",i.getHostAddress());
> }
> public void test_getByName_d() throws IOException {
>         InetAddress  i = InetAddress.getByName(String.valueOf(0xffffffffL));
>         assertEquals("255.255.255.255",i.getHostAddress());
> }
>        

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message