aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libjava/ChangeLog5
-rw-r--r--libjava/java/text/MessageFormat.java9
2 files changed, 6 insertions, 8 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog
index 0a9400f..9395ee4 100644
--- a/libjava/ChangeLog
+++ b/libjava/ChangeLog
@@ -1,3 +1,8 @@
+2001-09-05 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
+
+ * java/text/MessageFormat.java (setLocale): Don't catch ParseException
+ here, DecimalFormat.applyPattern() does not throw it.
+
2001-09-04 Tom Tromey <tromey@redhat.com>
* java/util/AbstractMap.java: Re-merged with Classpath.
diff --git a/libjava/java/text/MessageFormat.java b/libjava/java/text/MessageFormat.java
index ffe34a6..aaf4907 100644
--- a/libjava/java/text/MessageFormat.java
+++ b/libjava/java/text/MessageFormat.java
@@ -88,14 +88,7 @@ final class MessageFormatElement
{
format = NumberFormat.getNumberInstance(loc);
DecimalFormat df = (DecimalFormat) format;
- try
- {
- df.applyPattern(style);
- }
- catch (ParseException x)
- {
- throw new IllegalArgumentException (x.getMessage());
- }
+ df.applyPattern(style);
}
}
else if (type.equals("time") || type.equals("date"))