Commit d9ef6ef7 by Bryce McKinlay Committed by Bryce McKinlay

MessageFormat.java (setLocale): Don't catch ParseException here,…

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
parent f29b1c66
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.
......
......@@ -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"))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment