MessageFormat.java (MessageFormat(String)): Set the default locale.

1999-09-16  Bryce McKinlay  <bryce@albatross.co.nz>
	* java/text/MessageFormat.java (MessageFormat(String)): Set the
	default locale.
	* java/text/NumberFormat.java: Check that object is a Number. If
	not, throw IllegialArgumentException.

From-SVN: r29574
This commit is contained in:
Bryce McKinlay 1999-09-22 04:41:26 +00:00 committed by Bryce McKinlay
parent 00ec6daa3c
commit 5ab00e275b
3 changed files with 12 additions and 1 deletions

View file

@ -400,6 +400,7 @@ public class MessageFormat extends Format
public MessageFormat (String pattern)
{
locale = Locale.getDefault();
applyPattern (pattern);
}