diff options
author | Bryce McKinlay <bryce@waitaki.otago.ac.nz> | 2001-09-05 07:26:33 +0000 |
---|---|---|
committer | Bryce McKinlay <bryce@waitaki.otago.ac.nz> | 2001-09-05 07:26:33 +0000 |
commit | bc4b824049d8b075fbe8fd7478fcc33bdfd1af33 (patch) | |
tree | 3094ffb15ceaaaecef7f438d835a5ef10fa9cb6d | |
parent | 91c415b86c930ebec5c8fcf0a3e9a048fa0c57cb (diff) |
* java/text/MessageFormat.java (setLocale): Don't catch ParseException
here, DecimalFormat.applyPattern() does not throw it.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@45398 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | libjava/ChangeLog | 5 | ||||
-rw-r--r-- | libjava/java/text/MessageFormat.java | 9 |
2 files changed, 6 insertions, 8 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 0a9400f0128..9395ee43c2d 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 ffe34a68a2f..aaf49075e19 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")) |