ResourceBundle patch
Mark Wielaard
mark@klomp.org
Sun Dec 8 14:36:00 GMT 2002
Hi,
The following fixes the bug I was seeing when the default Locale was
change because it might still contain entries that belonged to the old
default Locale. The patch just resets the complete cache when it detects
that the default Locale has changed. (Note that this patch has nothing
todo with the child variants discussion on the mauve-discuss list.)
2002-12-08 Mark Wielaard <mark@klomp.org>
* java/util/ResourceBundle.java (resourceBundleCache): Not final.
(lastDefaultLocale): New field.
(getBundle): When Locale.getDefault != lastDefaultLocale reset
resourceBundleCache.
OK to commit?
Cheers,
Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ResourceBundle.patch
Type: text/x-patch
Size: 1914 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20021208/00ca2462/attachment.bin>
More information about the Java-patches
mailing list