Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Nightly Builds
-
None
-
None
Description
FloatToString seems to return unexpected results.
Test Case:
@Test
public void testFloatFormat() throws Exception
This class may be the cause:
public static abstract class AbstractNumberConverter<S, T> extends AbstractLocalizedConverter<S, T> {
It seems to drop the "format" string.
Also, the method:
protected String format(Float obj, NumberFormat nf) throws ConversionException {
Should be made public to work around the issue if you want to , for example, provide the DecimalFormat to the converter.