Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 98555 invoked from network); 3 Jan 2007 05:33:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Jan 2007 05:33:49 -0000 Received: (qmail 55021 invoked by uid 500); 3 Jan 2007 05:33:56 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 54807 invoked by uid 500); 3 Jan 2007 05:33:55 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 54766 invoked by uid 99); 3 Jan 2007 05:33:55 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Jan 2007 21:33:55 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Jan 2007 21:33:47 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 817C47142F9 for ; Tue, 2 Jan 2007 21:33:27 -0800 (PST) Message-ID: <24552371.1167802407509.JavaMail.jira@brutus> Date: Tue, 2 Jan 2007 21:33:27 -0800 (PST) From: "Tony Wu (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-2936) [classlib][luni]InetAddress.getByName does not support some textual representations In-Reply-To: <22231121.1167719907496.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ 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