]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
MessageFormat.java (setLocale): Don't catch ParseException here, DecimalFormat.applyP...
authorBryce McKinlay <bryce@waitaki.otago.ac.nz>
Wed, 5 Sep 2001 07:26:33 +0000 (07:26 +0000)
committerBryce McKinlay <bryce@gcc.gnu.org>
Wed, 5 Sep 2001 07:26:33 +0000 (08:26 +0100)
        * java/text/MessageFormat.java (setLocale): Don't catch ParseException
        here, DecimalFormat.applyPattern() does not throw it.

From-SVN: r45398

libjava/ChangeLog
libjava/java/text/MessageFormat.java

index 0a9400f0128074c4bc5042e6b549dca4c807eba6..9395ee43c2d1ed39082e6f97d4309e820a052128 100644 (file)
@@ -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.
index ffe34a68a2f6e77b2cd1bb74aee3fca364070c25..aaf49075e197dd449e5c6874619265ceb03001b7 100644 (file)
@@ -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"))