harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paulex Yang (JIRA)" <j...@apache.org>
Subject [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.
Date Mon, 14 May 2007 06:10:16 GMT

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


Mime
View raw message