Description
IntegerConverter, and possibly anything extends AbstractIntegerConverter cannot parse locale formatted input or output locale formatted string. E.g., IntegerConverter.convertToObject("999,999", new Locale("us")) raise parseexception. IntegerConverter.convertToString(new Integer("999999", new Locale("us")) => "999999" instead of "999,999".
This is because in AbstractIntegerConverter:
public NumberFormat getNumberFormat(Locale locale)
{
NumberFormat numberFormat = (NumberFormat)numberFormats.get(locale);
if (numberFormat == null)
return (NumberFormat)numberFormat.clone();
}
Is it possible to remove "numberFormat.setGroupingUsed(false);"?