With Camel 2.11 the impliedDecimalSeparator appears to have a problem with
numbers starting with 0. For example:
@DataField(pos = 1, precision = 10, length = 11, impliedDecimalSeparator =
true) private BigDecimal foobar;
value: 0123567
Throws an error
Non-terminating decimal
It looks we need to add a rounding mode when calling the divide method.
The default value which is used in the divide method is
RoundingMode.UNNECESSARY.
You will get the exception when the divide method don't know how to round.
--
Willem Jiang
Red Hat, Inc.
FuseSource is now part of Red Hat
I just found there are some bugs in the code, so I fill a JIRA[1] for it.
[1]https://issues.apache.org/jira/browse/CAMEL-6358
--
Willem Jiang
Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://www.fusesource.com | http://www.redhat.com
Blog: http://willemjiang.blogspot.com