You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Tony Wu (JIRA)" <ji...@apache.org> on 2007/01/03 06:33:27 UTC
[jira] Updated: (HARMONY-2936)
[classlib][luni]InetAddress.getByName does not support some textual
representations
[ https://issues.apache.org/jira/browse/HARMONY-2936?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tony Wu updated HARMONY-2936:
-----------------------------
Attachment: harmony-2936.diff
> [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
> 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