When marshalling an object, default locale is always used even if
createDecimalFormat is overriden. This is because the format method doesn't use
that factory method.
public String format(Object value) {
if (value == null)
return null;
else if (pattern == null)
return ((Number) value).toString();
else
return new DecimalFormat(pattern).format(value);
}
As a workaround, I overrided this method too with:
public String format(Object value) {
if (value == null)
return null;
else if (pattern == null)
return ((Number) value).toString();
else
return createDecimalFormat().format(value);
}
Original issue reported on code.google.com by fbar...@gmail.com on 19 Jun 2013 at 6:19
Original issue reported on code.google.com by
fbar...@gmail.com
on 19 Jun 2013 at 6:19