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
This commit is contained in:
parent
f29b1c66f3
commit
d9ef6ef7d9
2 changed files with 6 additions and 8 deletions
|
@ -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"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue