diff options
author | Torsten Rueger <torsten.rueger@firsthop.com> | 2001-04-02 19:55:56 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2001-04-02 19:55:56 +0000 |
commit | 5f82d4f21cac3bbef5b486a04cf4e5966f98ee75 (patch) | |
tree | 30088aaf82f684dbb480e828216c729769f3b04b /libjava | |
parent | 5152512c2ee4076275d88c21f2421e07b4f861dd (diff) | |
download | gcc-5f82d4f21cac3bbef5b486a04cf4e5966f98ee75.zip gcc-5f82d4f21cac3bbef5b486a04cf4e5966f98ee75.tar.gz gcc-5f82d4f21cac3bbef5b486a04cf4e5966f98ee75.tar.bz2 |
re PR libgcj/2429 (java.text.MessageFormat should usefully set text on exceptions)
2001-04-02 Torsten Rueger <torsten.rueger@firsthop.com>
* java/text/MessageFormat.java (setLocale): Added missing `else'.
For PR libgcj/2429.
From-SVN: r41012
Diffstat (limited to 'libjava')
-rw-r--r-- | libjava/ChangeLog | 5 | ||||
-rw-r--r-- | libjava/java/text/MessageFormat.java | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 29885aa..59225f5 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2001-04-02 Torsten Rueger <torsten.rueger@firsthop.com> + + * java/text/MessageFormat.java (setLocale): Added missing `else'. + For PR libgcj/2429. + 2001-03-30 Tom Tromey <tromey@redhat.com> * jni.cc (add_char): Correctly encode non-ascii characters. diff --git a/libjava/java/text/MessageFormat.java b/libjava/java/text/MessageFormat.java index 2cd6386..bb2a4c3 100644 --- a/libjava/java/text/MessageFormat.java +++ b/libjava/java/text/MessageFormat.java @@ -88,7 +88,7 @@ final class MessageFormatElement int val = DateFormat.DEFAULT; if (style == null) ; - if (style.equals("short")) + else if (style.equals("short")) val = DateFormat.SHORT; else if (style.equals("medium")) val = DateFormat.MEDIUM; |