Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Operating System: Mac OS X 10.3
Platform: Macintosh
-
33839
Description
To simulate the error run the TestCase
org.apache.commons.beanutils.locale.LocalConvertUtilsTestCase.fixmetestNegativeScalar.
The DecimalLocaleConverter has an error in constructor chaining.
The following constructor
>>>
public DecimalLocaleConverter(Locale locale, String pattern, boolean locPattern)
<<<
calls the constructor
>>>
public DecimalLocaleConverter(Object defaultValue, Locale locale, String pattern, boolean
locPattern)
<<<
which always returns a default value.
The constructor has to call anlogous to DateLocalConverter
>>>
public DecimalLocaleConverter(Locale locale, String pattern, boolean locPattern)
<<<
By the way: I missing a CalendarLocalConverter as a subclass of DateLocaleConverter!
Thanks,
Stefan Lötscher, Inventage