mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 22:44:49 +00:00
ICU-4162 for ures_openDirect use ICUResourceBundle.createBundle
X-SVN-Rev: 16663
This commit is contained in:
parent
e7aa2c2e3a
commit
ba8ef8ac0d
1 changed files with 3 additions and 2 deletions
|
@ -127,7 +127,7 @@ public class Currency extends MeasureUnit implements Serializable {
|
|||
if (variant.equals("PREEURO") || variant.equals("EURO")) {
|
||||
country = country + '_' + variant;
|
||||
}
|
||||
ICUResourceBundle bundle = (ICUResourceBundle)UResourceBundle.getBundleInstance(ICUResourceBundle.ICU_BASE_NAME,"CurrencyData");
|
||||
ICUResourceBundle bundle = ICUResourceBundle.createBundle(ICUResourceBundle.ICU_BASE_NAME,"CurrencyData", ICUResourceBundle.ICU_DATA_CLASS_LOADER);
|
||||
ICUResourceBundle cm = bundle.get("CurrencyMap");
|
||||
|
||||
// Do a linear search
|
||||
|
@ -331,7 +331,8 @@ public class Currency extends MeasureUnit implements Serializable {
|
|||
|
||||
// Multi-level resource inheritance fallback loop
|
||||
while (locale != null) {
|
||||
ICUResourceBundle rb = (ICUResourceBundle)UResourceBundle.getBundleInstance(ICUResourceBundle.ICU_BASE_NAME,locale);
|
||||
ICUResourceBundle rb = ICUResourceBundle.createBundle(ICUResourceBundle.ICU_BASE_NAME,"CurrencyData", ICUResourceBundle.ICU_DATA_CLASS_LOADER);
|
||||
|
||||
// We can't cast this to String[][]; the cast has to happen later
|
||||
try {
|
||||
ICUResourceBundle currencies = rb.get("Currencies");
|
||||
|
|
Loading…
Add table
Reference in a new issue