beehive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carlin Rogers (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (BEEHIVE-1216) issue in netui formatNumber tag
Date Fri, 08 Feb 2008 00:39:08 GMT

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

Carlin Rogers resolved BEEHIVE-1216.
------------------------------------

       Resolution: Fixed
    Fix Version/s: V.Next
         Assignee: Julie Zhuo

Thanks for the patch Poorna. Looks good. I made some minor changes to handle the case when
a NumberFormatException is thrown with a null message from the BigDecimal constructor when
parsing the input data. I also updated the FormatTags test case to include the the rounding
error scenario noted in this bug.

This bug is fixed with SVN revision 619708.

> issue in netui formatNumber tag
> -------------------------------
>
>                 Key: BEEHIVE-1216
>                 URL: https://issues.apache.org/jira/browse/BEEHIVE-1216
>             Project: Beehive
>          Issue Type: Bug
>          Components: NetUI
>    Affects Versions: 1.0
>            Reporter: Poornachandran
>            Assignee: Julie Zhuo
>            Priority: Minor
>             Fix For: V.Next
>
>         Attachments: patch.txt
>
>
> The following is the code snippet 
> <netui:span value="999999999999999999.97">
> <netui:formatNumber pattern="#,###.##" type="currency" />
> </netui:span>
> produces the result     1,000,000,000,000,000,000
> The issue is identified in FormatNumber tag class, instead of using double, usage of
BigDecimal resolves the issue. I shall attach the patch file. Please submit this if it is
okay.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message