Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

Aw: Re: Re: Re: Re: Camel Bindy: parse a BigDecimal number with a given pattern

$
0
0
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.

Viewing all articles
Browse latest Browse all 5648

Trending Articles