GCJ ----- Regarding LocaleData.class
Bryce McKinlay
bryce@albatross.co.nz
Wed Jul 5 05:00:00 GMT 2000
"Subramoney, Sreenivas" wrote:
> I see files like java/text/DateFormat.java (line 109) and
> java/text/NumberFormat.java (line 62) explicitly
> referring to "gnu.gcj.text.LocaleData", and the JVM then tries to load
> "gnu.gcj.text.LocaleData.class", which
> is not present in ../gnu/gcj/text.
>> Am I missing the LocaleData.class file from the distribution, in which case
> how should I get it?
> (I do have the LocaleData_en_US.class and the LocaleData_en.class files)
No, there is no LocaleData.class. DateFormat loads its data using the
ResourceBundle class, which appends a locale id to the classname before
looking for it. The locale it looks for is the value of Locale.getDefault(),
which currently I think will allways return language "en" and no country
unless the user.language and user.country properties are set. So
ResourceBundle.getBundle should actually be looking for the LocaleData_en
class. Are you getting an error?
regards
[ bryce ]
More information about the Java
mailing list