Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 84237 invoked from network); 27 Apr 2007 03:06:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Apr 2007 03:06:36 -0000 Received: (qmail 70808 invoked by uid 500); 27 Apr 2007 03:06:43 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 70708 invoked by uid 500); 27 Apr 2007 03:06:43 -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 70699 invoked by uid 99); 27 Apr 2007 03:06:43 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Apr 2007 20:06:43 -0700 X-ASF-Spam-Status: No, hits=-100.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; Thu, 26 Apr 2007 20:06:36 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id DEB32714076 for ; Thu, 26 Apr 2007 20:06:15 -0700 (PDT) Message-ID: <7634997.1177643175908.JavaMail.jira@brutus> Date: Thu, 26 Apr 2007 20:06:15 -0700 (PDT) From: "Leo Li (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-3774) [classlib][beans]java.beans.beanscontext.BeanContextSupport.setLocale(null) should have no effect as spec says, but Harmony set it as default locale. In-Reply-To: <21617458.1177637475475.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-3774?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Leo Li updated HARMONY-3774: ---------------------------- Patch Info: [Patch Available] > [classlib][beans]java.beans.beanscontext.BeanContextSupport.setLocale(null) should have no effect as spec says, but Harmony set it as default locale. > ----------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: HARMONY-3774 > URL: https://issues.apache.org/jira/browse/HARMONY-3774 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Leo Li > Assigned To: Paulex Yang > Attachments: patch-3774.zip > > > Here is a testcase: > public void test_setLocale_null() throws Exception > { > Locale locale = Locale.FRANCE; > BeanContextSupport beanContextSupport = new BeanContextSupport(null, locale); > assertEquals(Locale.FRANCE, beanContextSupport.getLocale()); > MyPropertyChangeListener myPropertyChangeListener = new MyPropertyChangeListener(); > beanContextSupport.addPropertyChangeListener("locale", myPropertyChangeListener); > beanContextSupport.setLocale(null); > assertEquals(Locale.FRANCE, beanContextSupport.getLocale()); > assertFalse(myPropertyChangeListener.changed); > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.