aboutsummaryrefslogtreecommitdiff
path: root/libjava/java
diff options
context:
space:
mode:
authorBryce McKinlay <mckinlay@redhat.com>2004-07-10 02:26:19 +0000
committerBryce McKinlay <bryce@gcc.gnu.org>2004-07-10 03:26:19 +0100
commit284d6a1fc39e6c7bcfca33d3f67a69547c646207 (patch)
treecf215309d76f37d1079196f467680ad976eb1b67 /libjava/java
parent020510c955a775c8b9d1144ec0d16ca6a8efab9a (diff)
downloadgcc-284d6a1fc39e6c7bcfca33d3f67a69547c646207.zip
gcc-284d6a1fc39e6c7bcfca33d3f67a69547c646207.tar.gz
gcc-284d6a1fc39e6c7bcfca33d3f67a69547c646207.tar.bz2
Calendar.java: Use getSystemClassLoader as argument for ResourceBundle.getBundle() calls.
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
Diffstat (limited to 'libjava/java')
-rw-r--r--libjava/java/awt/Window.java2
-rw-r--r--libjava/java/text/BreakIterator.java2
-rw-r--r--libjava/java/text/Collator.java2
-rw-r--r--libjava/java/text/DateFormat.java2
-rw-r--r--libjava/java/text/DateFormatSymbols.java2
-rw-r--r--libjava/java/text/DecimalFormatSymbols.java2
-rw-r--r--libjava/java/text/NumberFormat.java2
-rw-r--r--libjava/java/util/Calendar.java3
-rw-r--r--libjava/java/util/Currency.java2
-rw-r--r--libjava/java/util/GregorianCalendar.java2
10 files changed, 11 insertions, 10 deletions
diff --git a/libjava/java/awt/Window.java b/libjava/java/awt/Window.java
index 2e19874..7fa471e 100644
--- a/libjava/java/awt/Window.java
+++ b/libjava/java/awt/Window.java
@@ -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);
}
diff --git a/libjava/java/text/BreakIterator.java b/libjava/java/text/BreakIterator.java
index e97b658..92037a3 100644
--- a/libjava/java/text/BreakIterator.java
+++ b/libjava/java/text/BreakIterator.java
@@ -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)
diff --git a/libjava/java/text/Collator.java b/libjava/java/text/Collator.java
index 7797962..6464d13 100644
--- a/libjava/java/text/Collator.java
+++ b/libjava/java/text/Collator.java
@@ -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)
diff --git a/libjava/java/text/DateFormat.java b/libjava/java/text/DateFormat.java
index 81427eb..c0ca737 100644
--- a/libjava/java/text/DateFormat.java
+++ b/libjava/java/text/DateFormat.java
@@ -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)
{
diff --git a/libjava/java/text/DateFormatSymbols.java b/libjava/java/text/DateFormatSymbols.java
index 0d61951..b9b71ba 100644
--- a/libjava/java/text/DateFormatSymbols.java
+++ b/libjava/java/text/DateFormatSymbols.java
@@ -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");
diff --git a/libjava/java/text/DecimalFormatSymbols.java b/libjava/java/text/DecimalFormatSymbols.java
index 39de36b..be04585 100644
--- a/libjava/java/text/DecimalFormatSymbols.java
+++ b/libjava/java/text/DecimalFormatSymbols.java
@@ -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)
{
diff --git a/libjava/java/text/NumberFormat.java b/libjava/java/text/NumberFormat.java
index 47a4eaa..00d3030 100644
--- a/libjava/java/text/NumberFormat.java
+++ b/libjava/java/text/NumberFormat.java
@@ -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)
{
diff --git a/libjava/java/util/Calendar.java b/libjava/java/util/Calendar.java
index 0c671e1..e1ecf3e 100644
--- a/libjava/java/util/Calendar.java
+++ b/libjava/java/util/Calendar.java
@@ -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());
}
/**
diff --git a/libjava/java/util/Currency.java b/libjava/java/util/Currency.java
index 4723512..d7987b9 100644
--- a/libjava/java/util/Currency.java
+++ b/libjava/java/util/Currency.java
@@ -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());
}
/**
diff --git a/libjava/java/util/GregorianCalendar.java b/libjava/java/util/GregorianCalendar.java
index 9de4333..fcef6bb 100644
--- a/libjava/java/util/GregorianCalendar.java
+++ b/libjava/java/util/GregorianCalendar.java
@@ -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());
}
/**