oblac / jodd-util

Essential Java utilities.
https://util.jodd.org
BSD 2-Clause "Simplified" License
39 stars 9 forks source link

Locale support for type conversions #1

Open andrewruckerjones opened 5 years ago

andrewruckerjones commented 5 years ago

Current behavior

As far as I can determine, all type conversions performed by Jodd BeanUtil or rather its associated converters are all with respect to the default locale.

Expected behavior

I would love to replace Apache BeanUtils with Jodd, but we support arbitrary locales for conversion of all data types. If Jodd could add this feature, we might be able to migrate.

igr commented 5 years ago

Absolutely make sense. Will prioritize.

igr commented 5 years ago

Hey, sorry for the long response, had a medical condition... Do you need locale support for e.g. numbers (1.000.00) and dates?

andrewruckerjones commented 5 years ago

We do dates through the parsing and formatting classes Java provides (SimpleDateFormat, DateTimeFormatter), so no, we don't need that. It's about numbers, but that does include BigInteger and BigDecimal.

And thank you for even considering our request!