Calendar.java: Use getSystemClassLoader as argument for ResourceBundle.getBundle...
authorBryce McKinlay <mckinlay@redhat.com>
Sat, 10 Jul 2004 02:26:19 +0000 (02:26 +0000)
committerBryce McKinlay <bryce@gcc.gnu.org>
Sat, 10 Jul 2004 02:26:19 +0000 (03:26 +0100)
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.

From-SVN: r84437

libjava/ChangeLog
libjava/java/awt/Window.java
libjava/java/text/BreakIterator.java
libjava/java/text/Collator.java
libjava/java/text/DateFormat.java
libjava/java/text/DateFormatSymbols.java
libjava/java/text/DecimalFormatSymbols.java
libjava/java/text/NumberFormat.java
libjava/java/util/Calendar.java
libjava/java/util/Currency.java
libjava/java/util/GregorianCalendar.java

index 088ef4b2169e198dc2836e057c3f99fcae5a82e8..c69302e425ac27f6e9c282454eb58376e630e77d 100644 (file)
@@ -1,3 +1,17 @@
+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
index 2e198740b6f84639a6ccb3dcf6bb609d94dd7a85..7fa471ee73be7be83da12c1d92087bcb414c7669 100644 (file)
@@ -704,7 +704,7 @@ public class Window extends Container implements Accessible
   public void applyResourceBundle(String rbName)
   {
     ResourceBundle rb = ResourceBundle.getBundle(rbName, Locale.getDefault(),
-      Window.class.getClassLoader());
+      ClassLoader.getSystemClassLoader());
     if (rb != null)
       applyResourceBundle(rb);    
   }
index e97b6587707292d18041a18153771927cc047215..92037a3bf5536ded3456d530f8312d6fa8cd7500 100644 (file)
@@ -136,7 +136,7 @@ public abstract class BreakIterator implements Cloneable
       {
        ResourceBundle res
          = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation",
-                                    loc, BreakIterator.class.getClassLoader());
+                                    loc, ClassLoader.getSystemClassLoader());
        className = res.getString(type);
       }
     catch (MissingResourceException x)
index 7797962d4f907fb648e99ec3e4d36d68250cf26a..6464d1370415b17e28fbb478316871619eff12a7 100644 (file)
@@ -303,7 +303,7 @@ public abstract class Collator implements Comparator, Cloneable
     try
       {
        res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation",
-                                      loc, Collator.class.getClassLoader());
+                                      loc, ClassLoader.getSystemClassLoader());
        pattern = res.getString("collation_rules");
       }
     catch (MissingResourceException x)
index 81427ebce61c1e4fa1e14f11140da2571e39b43c..c0ca73794e6638d9ebb0e9f87c8198ba16046682 100644 (file)
@@ -326,7 +326,7 @@ public abstract class DateFormat extends Format implements Cloneable
     try
       {
        res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation",
-                                      loc, DateFormat.class.getClassLoader());
+                                      loc, ClassLoader.getSystemClassLoader());
       }
     catch (MissingResourceException x)
       {
index 0d619516d36d882450c23c41dd36f978555ef6fc..b9b71ba36a7217fb1c4385f1f04e9a1f83121fc0 100644 (file)
@@ -99,7 +99,7 @@ public class DateFormatSymbols implements java.io.Serializable, Cloneable
   {
     ResourceBundle res
       = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", locale,
-                                getClass().getClassLoader());
+                                ClassLoader.getSystemClassLoader());
 
     ampms = res.getStringArray ("ampms");
     eras = res.getStringArray ("eras");
index 39de36b7ae00c2e87f1ef42c8cda6b13a31a7c5f..be045857188a34d2d22df54353a2258d6b6daa8a 100644 (file)
@@ -130,7 +130,7 @@ public final class DecimalFormatSymbols implements Cloneable, Serializable
     try
       {
        res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation",
-               loc, DecimalFormatSymbols.class.getClassLoader());
+               loc, ClassLoader.getSystemClassLoader());
       }
     catch (MissingResourceException x)
       {
index 47a4eaae575a7b1fd71482e873dbb1895cf6d4d6..00d3030f0ee9ff303e1982ffb83b7654fb8d2782 100644 (file)
@@ -310,7 +310,7 @@ public abstract class NumberFormat extends Format implements Cloneable
     try
       {
        res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation",
-               loc, NumberFormat.class.getClassLoader());
+               loc, ClassLoader.getSystemClassLoader());
       }
     catch (MissingResourceException x)
       {
index 0c671e1c040f28e2c44816a79f47943b05ac1d2f..e1ecf3e519aee6d2dc16c9999e094be23393e51e 100644 (file)
@@ -42,6 +42,7 @@ import java.io.IOException;
 import java.io.ObjectInputStream;
 import java.io.ObjectOutputStream;
 import java.io.Serializable;
+import java.lang.reflect.Constructor;
 import java.lang.reflect.InvocationTargetException;
 
 /**
@@ -377,7 +378,7 @@ public abstract class Calendar implements Serializable, Cloneable
   private static ResourceBundle getBundle(Locale locale) 
   {
     return ResourceBundle.getBundle(bundleName, locale,
-      Calendar.class.getClassLoader());
+      ClassLoader.getSystemClassLoader());
   }
 
   /**
index 472351281fcca6751ee8b58d6667ba195679c61b..d7987b942063e1f5884626e68044f4fdc0edd63e 100644 (file)
@@ -55,7 +55,7 @@ public final class Currency implements Serializable
   {
     this.locale = loc;
     this.res = ResourceBundle.getBundle ("gnu.java.locale.LocaleInformation", 
-      locale, Currency.class.getClassLoader());
+      locale, ClassLoader.getSystemClassLoader());
   }
 
   /**
index 9de433389bde8ed7a4adade77f598af3656aa99e..fcef6bb4560706926168658441d2ca70ef975dce 100644 (file)
@@ -91,7 +91,7 @@ public class GregorianCalendar extends Calendar
   private static ResourceBundle getBundle(Locale locale) 
   {
     return ResourceBundle.getBundle(bundleName, locale,
-      GregorianCalendar.class.getClassLoader());
+      ClassLoader.getSystemClassLoader());
   }
 
   /**