Willem Jiang created CAMEL-6358:
-----------------------------------
Summary: BigDecimalFormat can't deal with the number with big
precision
Key: CAMEL-6358
URL: https://issues.apache.org/jira/browse/CAMEL-6358
Project: Camel
Issue Type: Bug
Affects Versions: 2.11.0
Reporter: Willem Jiang
Assignee: Willem Jiang
Fix For: 2.11.1
You will get the below error when
{code}
Non-terminating decimal expansion; no exact representable decimal result.
caused by
java.math.BigDecimal.divide(BigDecimal.java:1616)
org.apache.camel.dataformat.bindy.format.BigDecimalFormat.parse(BigDecimalFormat.java:38)
org.apache.camel.dataformat.bindy.format.BigDecimalFormat.parse(BigDecimalFormat.java:23)
{code}
When parasering the String 00000123567 with the below model.
{code}
@DataField(pos = 1, precision = 10, length = 11, impliedDecimalSeparator =
true)
private BigDecimal foobar;
{code}
Here is the discussion about the issue.
http://camel.465427.n5.nabble.com/impliedDecimalSeparator-not-working-for-numbers-starting-with-0-tp5732448.html
--
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