Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 56213 invoked from network); 12 Feb 2008 10:02:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Feb 2008 10:02:39 -0000 Received: (qmail 51710 invoked by uid 500); 12 Feb 2008 10:02:33 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 51697 invoked by uid 500); 12 Feb 2008 10:02:33 -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 51688 invoked by uid 99); 12 Feb 2008 10:02:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Feb 2008 02:02:33 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED 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, 12 Feb 2008 10:01:56 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4579271406C for ; Tue, 12 Feb 2008 02:02:14 -0800 (PST) Message-ID: <23138150.1202810534282.JavaMail.jira@brutus> Date: Tue, 12 Feb 2008 02:02:14 -0800 (PST) From: "Tony Wu (JIRA)" To: commits@harmony.apache.org Subject: [jira] Reopened: (HARMONY-5466) [classlib][util] display language is reset to the value of constructor after Locale is set as default. In-Reply-To: <24695773.1202302909606.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-5466?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tony Wu reopened HARMONY-5466: ------------------------------ > [classlib][util] display language is reset to the value of constructor after Locale is set as default. > ------------------------------------------------------------------------------------------------------ > > Key: HARMONY-5466 > URL: https://issues.apache.org/jira/browse/HARMONY-5466 > Project: Harmony > Issue Type: Bug > Components: Non-bug differences from RI > Environment: All > Reporter: Pavel Pervov > Assignee: Tony Wu > Fix For: 5.0M5 > > > The following test succeeds on RI but fails on Harmony. > ---------------------------- > import java.util.Locale; > class LocaleDisplayLang { > public static void main(String[] args) { > Locale p = new Locale("la", "NZ"); > if(p.getDisplayLanguage().equals("Latin")) { > System.out.println("PASSED"); > } else { > System.out.println("FAILED: Latin != " + p.getDisplayLanguage()); > } > Locale.setDefault(p); > if(p.getDisplayLanguage().equals("Latin")) { > System.out.println("PASSED"); > } else { > System.out.println("FAILED: Latin != " + p.getDisplayLanguage()); > } > } > } > ---------------------------- > RI prints > PASSED > PASSED > but Harmony prints > PASSED > FAILED -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.