diff options
| author | Bryce McKinlay <bryce@albatross.co.nz> | 1999-09-22 04:41:26 +0000 |
|---|---|---|
| committer | Bryce McKinlay <bryce@gcc.gnu.org> | 1999-09-22 05:41:26 +0100 |
| commit | 5ab00e275b539136f48c62b2363936e92d4272c0 (patch) | |
| tree | 57703937fd6e5e454ca527734ee854ed01054636 /libjava/java/text/MessageFormat.java | |
| parent | 00ec6daa3ca775bae5983d6df8d3085726f6c4b0 (diff) | |
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
Diffstat (limited to 'libjava/java/text/MessageFormat.java')
| -rw-r--r-- | libjava/java/text/MessageFormat.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libjava/java/text/MessageFormat.java b/libjava/java/text/MessageFormat.java index 8b422357966..891a0c3e3d8 100644 --- a/libjava/java/text/MessageFormat.java +++ b/libjava/java/text/MessageFormat.java @@ -400,6 +400,7 @@ public class MessageFormat extends Format public MessageFormat (String pattern) { + locale = Locale.getDefault(); applyPattern (pattern); } |
