You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Luca Burgazzoli (JIRA)" <ji...@apache.org> on 2012/12/04 14:50:58 UTC

[jira] [Updated] (CAMEL-5846) camel-bindy - honor precision when formatting a decimal number

     [ https://issues.apache.org/jira/browse/CAMEL-5846?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Luca Burgazzoli updated CAMEL-5846:
-----------------------------------

    Description: 
Let's take the class org.apache.camel.dataformat.bindy.model.complex.generateheader.Order in which the field amount is defined as follow:

@DataField(pos = 9, precision = 2)
private BigDecimal amount;

This will properly un-marshall 10.00 and 10 but if I format it back I can only have 10 regardless of the precison. 

Patch available as part of the fix for CAMEL-5827
    
> camel-bindy - honor precision when formatting a decimal number
> --------------------------------------------------------------
>
>                 Key: CAMEL-5846
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5846
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-bindy
>            Reporter: Luca Burgazzoli
>            Priority: Minor
>
> Let's take the class org.apache.camel.dataformat.bindy.model.complex.generateheader.Order in which the field amount is defined as follow:
> @DataField(pos = 9, precision = 2)
> private BigDecimal amount;
> This will properly un-marshall 10.00 and 10 but if I format it back I can only have 10 regardless of the precison. 
> Patch available as part of the fix for CAMEL-5827

--
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