-
Bug
-
Resolution: Fixed
-
P4
-
1.2.0
-
1.2.2
-
sparc
-
solaris_2.5
Name: avC70361 Date: 10/07/98
The java.beans.beancontext.BeanContextSupport docs don't specify that during the construction of an instance
of the class the locale parameter if null is replaced with a default locale.
Here is a test demonstrating the bug.
-----------------BeanContextSupportTest.java-----------
import java.beans.beancontext.BeanContextSupport;
import java.util.Locale;
public class BeanContextSupportTest {
public static void main(String args[]) {
BeanContextSupport support = new BeanContextSupport(null, null);
System.out.println(
"getLocale result = " + support.getLocale()
+ ", default locale = " + Locale.getDefault()
);
}
}
-------------The test output-----------
> java BeanContextSupportTest
getLocale result = en, default locale = en
======================================================================