harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leo Li (JIRA)" <j...@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.
Date Fri, 27 Apr 2007 02:19:16 GMT

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

Leo Li updated HARMONY-3774:
----------------------------

    Attachment: patch-3774.zip

Will somebody try the patch?

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