Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 58654 invoked from network); 28 Sep 2006 08:34:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Sep 2006 08:34:48 -0000 Received: (qmail 92325 invoked by uid 500); 28 Sep 2006 08:34:48 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 92225 invoked by uid 500); 28 Sep 2006 08:34:48 -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 92214 invoked by uid 99); 28 Sep 2006 08:34:47 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Sep 2006 01:34:47 -0700 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received: from [209.237.227.198] ([209.237.227.198:50102] helo=brutus.apache.org) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 77/FB-05478-6298B154 for ; Thu, 28 Sep 2006 01:34:46 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id EA78F7141F1 for ; Thu, 28 Sep 2006 08:30:51 +0000 (GMT) Message-ID: <20639169.1159432251957.JavaMail.jira@brutus> Date: Thu, 28 Sep 2006 01:30:51 -0700 (PDT) From: "Paulex Yang (JIRA)" To: harmony-commits@incubator.apache.org Subject: [jira] Closed: (HARMONY-1514) [classlib][util] Locale.getAvailableLocales returns duplicate data In-Reply-To: <20267647.1158827602380.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/HARMONY-1514?page=all ] Paulex Yang closed HARMONY-1514. -------------------------------- Verified by Robert. > [classlib][util] Locale.getAvailableLocales returns duplicate data > ------------------------------------------------------------------ > > Key: HARMONY-1514 > URL: http://issues.apache.org/jira/browse/HARMONY-1514 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Robert Hu > Assigned To: Paulex Yang > Priority: Minor > Attachments: patch.diff > > > Following test shows that Harmony returns duplicate data. > Locale[] locales = Locale.getAvailableLocales(); > Set localesSet = new HashSet(Arrays.asList(locales)); > assertEquals(localesSet.size(),locales.length); > RI: Pass > Harmony: junit.framework.AssertionFailedError: expected:<190> but was:<380> > If we print out locales by "System.out.println(Arrays.toString(locales));" on Harmony, we'll find that Harmony print out all the locales twice. It's the reason why above test case fails. (Set will filter the same locales). -- 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