re PR libgcj/2429 (java.text.MessageFormat should usefully set text on exceptions)
authorTorsten Rueger <torsten.rueger@firsthop.com>
Mon, 2 Apr 2001 19:55:56 +0000 (19:55 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Mon, 2 Apr 2001 19:55:56 +0000 (19:55 +0000)
2001-04-02  Torsten Rueger  <torsten.rueger@firsthop.com>

* java/text/MessageFormat.java (setLocale): Added missing `else'.
For PR libgcj/2429.

From-SVN: r41012

libjava/ChangeLog
libjava/java/text/MessageFormat.java

index 29885aa1b34dea2947d963d7b0b6146cbc8bc9f1..59225f559a8cdc06d0bfe72bbd1434625ce55795 100644 (file)
@@ -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.
index 2cd6386a00cd5bf10b775d2a549ea544ef811d6a..bb2a4c3592a474a0b779baa4c0738d48eee41f21 100644 (file)
@@ -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;