You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Willem Jiang (JIRA)" <ji...@apache.org> on 2013/05/22 05:17:24 UTC
[jira] [Resolved] (CAMEL-6358) BigDecimalFormat can't deal with the
number with big precision
[ https://issues.apache.org/jira/browse/CAMEL-6358?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Willem Jiang resolved CAMEL-6358.
---------------------------------
Resolution: Fixed
Fix Version/s: 2.12.0
Applied the patch into trunk and camel-2.11.x.
> 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, 2.12.0
>
>
> 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