-
Notifications
You must be signed in to change notification settings - Fork 825
WW-3171 WW-3650 WW-4581: Locale aware converters #138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Will this break apps with locales which are using different decimal separator? E.g. in db |
It's all about See this example https://github.com/apache/struts-examples/blob/master/type-conversion/src/main/java/org/apache/struts/example/NumberAction.java#L13-L15 |
In our apps we have often demand for locale aware values. But more often we need dates, not doubles. Mostly we do this by calling java methods in JSPs. But having converts which do this out of the box would be great.
Yes, for some apps that would be a breaking change. But IMHO most apps use number formats which their users expect (-> locale aware number format). So for most it would be an improvement and they could remove custom code. But still, some apps might be broken. I always find it hard to get java |
Also please notice that I have to change just two old tests because of how @cnenning can you elaborate a bit more about parsing dates? I thought this is already supported. |
Now that you mention it, I see there is a locale aware |
Sure thing, please register an issue |
What about |
@aleksandr-m good point, done |
Any other objections? I would start with what we have here and improve |
👍 for merging |
This PR introduces Locale aware conversion of
BigDecimal
andDouble
andDouble
WW-3171
WW-3650
WW-4581