commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nia...@apache.org
Subject svn commit: r634092 - /commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/ExtendedMessageFormat.java
Date Thu, 06 Mar 2008 00:26:26 GMT
Author: niallp
Date: Wed Mar  5 16:26:24 2008
New Revision: 634092

URL: http://svn.apache.org/viewvc?rev=634092&view=rev
Log:
Restore JDK 1.3 compatibility (the MessageFormat(String, Locale) constructor was introduced
in JDK 1.4)

Modified:
    commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/ExtendedMessageFormat.java

Modified: commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/ExtendedMessageFormat.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/ExtendedMessageFormat.java?rev=634092&r1=634091&r2=634092&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/ExtendedMessageFormat.java
(original)
+++ commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/ExtendedMessageFormat.java
Wed Mar  5 16:26:24 2008
@@ -119,7 +119,8 @@
      * @throws IllegalArgumentException in case of a bad pattern.
      */
     public ExtendedMessageFormat(String pattern, Locale locale, Map registry) {
-        super(DUMMY_PATTERN, locale);
+        super(DUMMY_PATTERN);
+        setLocale(locale);
         this.registry = registry;
         applyPattern(pattern);
     }



Mime
View raw message