You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Paulex Yang (JIRA)" <ji...@apache.org> on 2007/05/14 08:10:16 UTC
[jira] Resolved: (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 ]
Paulex Yang resolved HARMONY-3774.
----------------------------------
Resolution: Fixed
Leo, patch applied at r537719, thanks a lot, please verify.
> [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.