Hi Tom,

As camel-2.14 is ready for the vote, you could perhaps make a test with the
Bindy modification to confirm ?


https://repository.apache.org/content/repositories/orgapachecamel-1012/org/apache/camel/apache-camel/2.14.0/

Regards,


On Wed, Aug 27, 2014 at 7:56 AM, Charles Moulliard <ch0...@gmail.com> wrote:

> Hi Tom,
>
> I will document that when we define the decimal & grouping separators,
> then the pattern is mandatory.
>
> Regards,
>
>
> On Tue, Aug 26, 2014 at 7:26 PM, <a_bli...@web.de> wrote:
>
>> Hi Charles,
>>
>> I've tested the current master with the following result:
>> - @DataField(pos = 6, required = true, precision = 2, pattern =
>> "#,###.##")
>>       -> works perfectly with my numbers
>>
>> - @DataField(pos = 6, required = true, precision = 2, groupingSeparator =
>> ",", decimalSeparator = ".")
>>       -> throws a NumberFormatException
>>
>> - @DataField(pos = 6, required = true, precision = 2, pattern =
>> "#,###.##", groupingSeparator = ",", decimalSeparator = ".")
>>       -> also works
>>
>> If this is the expected behavior, then every thing is fine I guess.
>> I'm happy with that change and I would use option 1 (pattern only).
>>
>> Thank you for your work.
>> Best regards.
>>
>
>
>
> --
> Charles Moulliard
> Apache Committer / Architect @RedHat
> Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io
>
>


-- 
Charles Moulliard
Apache Committer / Architect @RedHat
Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io

Reply via email to