diff options
author | Bryce McKinlay <bryce@waitaki.otago.ac.nz> | 2001-09-05 07:26:33 +0000 |
---|---|---|
committer | Bryce McKinlay <bryce@gcc.gnu.org> | 2001-09-05 08:26:33 +0100 |
commit | d9ef6ef7d9afac57587fc170ee49f12a25da315c (patch) | |
tree | 3094ffb15ceaaaecef7f438d835a5ef10fa9cb6d /libjava/java | |
parent | f29b1c66f3a846ddb5ed756801d9471cf5e97681 (diff) | |
download | gcc-d9ef6ef7d9afac57587fc170ee49f12a25da315c.zip gcc-d9ef6ef7d9afac57587fc170ee49f12a25da315c.tar.gz gcc-d9ef6ef7d9afac57587fc170ee49f12a25da315c.tar.bz2 |
MessageFormat.java (setLocale): Don't catch ParseException here, DecimalFormat.applyPattern() does not throw it.
* java/text/MessageFormat.java (setLocale): Don't catch ParseException
here, DecimalFormat.applyPattern() does not throw it.
From-SVN: r45398
Diffstat (limited to 'libjava/java')
-rw-r--r-- | libjava/java/text/MessageFormat.java | 9 |
1 files changed, 1 insertions, 8 deletions
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")) |