You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Leo Li (JIRA)" <ji...@apache.org> on 2007/05/26 00:16:16 UTC

[jira] Closed: (HARMONY-3774) [classlib][beans]java.beans.beanscontext.BeanContextSupport.setLocale(null) should have no effect as spec says, but Harmony set it as default locale.

     [ https://issues.apache.org/jira/browse/HARMONY-3774?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leo Li closed HARMONY-3774.
---------------------------


Thanks, Paulex. Verified.
Leo.

> [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.