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] Created: (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 01:31:15 GMT
[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


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