ResourceBundle.java (bundleCache): Renamed from resourceBundleCache.
authorBryce McKinlay <mckinlay@redhat.com>
Sat, 10 Jul 2004 02:14:30 +0000 (02:14 +0000)
committerBryce McKinlay <bryce@gcc.gnu.org>
Sat, 10 Jul 2004 02:14:30 +0000 (03:14 +0100)
commit21f56031ca49d7c142075e533a40a42fd2af296d
tree5bb4aa17ab79240e1aba3df19980bdf9dddc9b78
parent17a916d4e61d8a6dac83eddec10b10428ca7b0c5
ResourceBundle.java (bundleCache): Renamed from resourceBundleCache.

2004-07-09  Bryce McKinlay  <mckinlay@redhat.com>

* java/util/ResourceBundle.java (bundleCache): Renamed from
resourceBundleCache. Update comments.
(getObject): Don't catch MissingResourceException.
(getBundle(String)): Remove 'final'. Use system classloader if
getCallingClassLoader returned null.
(getBundle(String, Locale)): Likewise.
(BundleKey): New private class. HashMap key for bundle cache lookup.
(lookupKey): New. Singleton instance of BundleKey.
(nullEntry): New. Cache entry to represent failed lookups.
(getBundle(String, Locale, ClassLoader)): Re-written to use new
caching strategy, no-allocation lookup, and new tryBundle methods.
(tryBundle(String, ClassLoader)): New. Load a locale-qualified
bundle name using given classloader.
(tryBundle(String, Locale, ClassLoader, boolean): New. Qualify
baseName for given Locale and attempt to load bundle.

From-SVN: r84434
libjava/ChangeLog
libjava/java/util/ResourceBundle.java