+2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
+
+ * java/util/Calendar.java: Use getSystemClassLoader as argument for
+ ResourceBundle.getBundle() calls.
+ * java/util/GregorianCalendar.java: Likewise.
+ * java/util/Currency.java: Likewise.
+ * java/text/BreakIterator.java: Likewise.
+ * java/text/Collator.java: Likewise.
+ * java/text/DateFormat.java: Likewise.
+ * java/text/DateFormatSymbols.java: Likewise.
+ * java/text/DecimalFormatSymbols.java: Likewise.
+ * java/text/NumberFormat.java: Likewise.
+ * java/awt/Window.java: Likewise.
+
2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
* java/util/ResourceBundle.java (bundleCache): Renamed from
public void applyResourceBundle(String rbName)
{
ResourceBundle rb = ResourceBundle.getBundle(rbName, Locale.getDefault(),
- Window.class.getClassLoader());
+ ClassLoader.getSystemClassLoader());
if (rb != null)
applyResourceBundle(rb);
}
{
ResourceBundle res
= ResourceBundle.getBundle("gnu.java.locale.LocaleInformation",
- loc, BreakIterator.class.getClassLoader());
+ loc, ClassLoader.getSystemClassLoader());
className = res.getString(type);
}
catch (MissingResourceException x)
try
{
res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation",
- loc, Collator.class.getClassLoader());
+ loc, ClassLoader.getSystemClassLoader());
pattern = res.getString("collation_rules");
}
catch (MissingResourceException x)
try
{
res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation",
- loc, DateFormat.class.getClassLoader());
+ loc, ClassLoader.getSystemClassLoader());
}
catch (MissingResourceException x)
{
{
ResourceBundle res
= ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", locale,
- getClass().getClassLoader());
+ ClassLoader.getSystemClassLoader());
ampms = res.getStringArray ("ampms");
eras = res.getStringArray ("eras");
try
{
res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation",
- loc, DecimalFormatSymbols.class.getClassLoader());
+ loc, ClassLoader.getSystemClassLoader());
}
catch (MissingResourceException x)
{
try
{
res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation",
- loc, NumberFormat.class.getClassLoader());
+ loc, ClassLoader.getSystemClassLoader());
}
catch (MissingResourceException x)
{
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
+import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
/**
private static ResourceBundle getBundle(Locale locale)
{
return ResourceBundle.getBundle(bundleName, locale,
- Calendar.class.getClassLoader());
+ ClassLoader.getSystemClassLoader());
}
/**
{
this.locale = loc;
this.res = ResourceBundle.getBundle ("gnu.java.locale.LocaleInformation",
- locale, Currency.class.getClassLoader());
+ locale, ClassLoader.getSystemClassLoader());
}
/**
private static ResourceBundle getBundle(Locale locale)
{
return ResourceBundle.getBundle(bundleName, locale,
- GregorianCalendar.class.getClassLoader());
+ ClassLoader.getSystemClassLoader());
}
/**