From: Bryce McKinlay Date: Wed, 5 Sep 2001 07:26:33 +0000 (+0000) Subject: MessageFormat.java (setLocale): Don't catch ParseException here, DecimalFormat.applyP... X-Git-Tag: prereleases/libstdc++-3.0.95~2258 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9ef6ef7d9afac57587fc170ee49f12a25da315c;p=thirdparty%2Fgcc.git 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 --- diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 0a9400f01280..9395ee43c2d1 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2001-09-05 Bryce McKinlay + + * java/text/MessageFormat.java (setLocale): Don't catch ParseException + here, DecimalFormat.applyPattern() does not throw it. + 2001-09-04 Tom Tromey * java/util/AbstractMap.java: Re-merged with Classpath. diff --git a/libjava/java/text/MessageFormat.java b/libjava/java/text/MessageFormat.java index ffe34a68a2f6..aaf49075e197 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"))