[ 
https://issues.apache.org/jira/browse/DELTASPIKE-355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13652748#comment-13652748
 ] 

Mark Struberg commented on DELTASPIKE-355:
------------------------------------------

I agree that String#format has a few pitfalls, like a broken float formatting. 
String.format of 1.5 results in 1.499999999 that's pretty ugly.
We have 2 options. Either make MessageFormat the default or provide an 
alternative a user could activate himself.
                
> Create Alternative to DefaultMessageInterpolator using java.text.MessageFormat
> ------------------------------------------------------------------------------
>
>                 Key: DELTASPIKE-355
>                 URL: https://issues.apache.org/jira/browse/DELTASPIKE-355
>             Project: DeltaSpike
>          Issue Type: Improvement
>          Components: I18n-Module
>            Reporter: Stefan Strobl
>
> {{String#format()}} has a couple of disadvantages and limitations (e.g. no 
> choice formating) and therefore MessageFormat might for some people (like me) 
> be a preferrable alternative. Will provide patch or pull request...

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to