myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu4...@apache.org
Subject svn commit: r1068711 - /myfaces/core/trunk/api/src/main/java/javax/faces/convert/DoubleConverter.java
Date Wed, 09 Feb 2011 00:48:24 GMT
Author: lu4242
Date: Wed Feb  9 00:48:23 2011
New Revision: 1068711

URL: http://svn.apache.org/viewvc?rev=1068711&view=rev
Log:
MYFACES-3024 remove JDK 1.6 code and replace it with JDK 1.5 compatible code.

Modified:
    myfaces/core/trunk/api/src/main/java/javax/faces/convert/DoubleConverter.java

Modified: myfaces/core/trunk/api/src/main/java/javax/faces/convert/DoubleConverter.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/api/src/main/java/javax/faces/convert/DoubleConverter.java?rev=1068711&r1=1068710&r2=1068711&view=diff
==============================================================================
--- myfaces/core/trunk/api/src/main/java/javax/faces/convert/DoubleConverter.java (original)
+++ myfaces/core/trunk/api/src/main/java/javax/faces/convert/DoubleConverter.java Wed Feb
 9 00:48:23 2011
@@ -97,8 +97,10 @@ public class DoubleConverter
             return value;
         }
 
-
-        DecimalFormatSymbols dfs = DecimalFormatSymbols.getInstance(loc);
+        // TODO: DecimalFormatSymbols.getInstance exists only on JDK 1.6
+        // change it on JSF 2.1
+        //DecimalFormatSymbols dfs = DecimalFormatSymbols.getInstance(loc);
+        DecimalFormatSymbols dfs = new DecimalFormatSymbols(loc);
 
         char decSep   = dfs.getDecimalSeparator();
 



Mime
View raw message