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, <[email protected]> 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
