Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 55342 invoked from network); 2 Aug 2006 07:18:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Aug 2006 07:18:48 -0000 Received: (qmail 54126 invoked by uid 500); 2 Aug 2006 07:18:48 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 54099 invoked by uid 500); 2 Aug 2006 07:18:47 -0000 Mailing-List: contact harmony-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-commits@incubator.apache.org Received: (qmail 54088 invoked by uid 99); 2 Aug 2006 07:18:47 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Aug 2006 00:18:47 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Aug 2006 00:18:47 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BC055410021 for ; Wed, 2 Aug 2006 07:16:14 +0000 (GMT) Message-ID: <10782000.1154502974767.JavaMail.jira@brutus> Date: Wed, 2 Aug 2006 00:16:14 -0700 (PDT) From: "Andrew Zhang (JIRA)" To: harmony-commits@incubator.apache.org Subject: [jira] Updated: (HARMONY-1040) [classlib][luni] java.net.URLStreamHandler.hostEquals should return true when two urls have the same host ip. In-Reply-To: <27239034.1154499738980.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 X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/HARMONY-1040?page=all ] Andrew Zhang updated HARMONY-1040: ---------------------------------- Attachment: luni.diff Hi, Would you please try my patch? Thanks! Best regards, Andrew > [classlib][luni] java.net.URLStreamHandler.hostEquals should return true when two urls have the same host ip. > ------------------------------------------------------------------------------------------------------------- > > Key: HARMONY-1040 > URL: http://issues.apache.org/jira/browse/HARMONY-1040 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Andrew Zhang > Attachments: luni.diff > > > java.net.URLStreamHandler.hostEquals should return true when two urls have the same host ip. > Following test reproduces the bug: > public void test_hostEquals() throws Exception { > MockURLStreamHandler mockHandler = new MockURLStreamHandler(); > URL u1 = new URL("http://andrew1"); > URL u2 = new URL("http://andrew2"); > assertTrue(mockHandler.hostEquals(u1, u2)); > } > Configure andrew1,andrew2 as the same ip in hosts file(i.e. /etc/hosts for linux and WINDOWS\system32\drivers\etc for windows). > The test passes against RI while fails against Harmony. > I'll upload a patch to fix this problem soon. > Thanks! > Best regards, > Andrew -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira