You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by "Poornachandran (JIRA)" <ji...@apache.org> on 2008/02/07 10:41:08 UTC
[jira] Created: (BEEHIVE-1216) issue in netui formatNumber tag
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
Priority: Minor
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.
[jira] Updated: (BEEHIVE-1216) issue in netui formatNumber tag
Posted by "Poornachandran (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/BEEHIVE-1216?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Poornachandran updated BEEHIVE-1216:
------------------------------------
Attachment: patch.txt
svn diff of the change that fixes the issue
> 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
> Priority: Minor
> 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.
[jira] Resolved: (BEEHIVE-1216) issue in netui formatNumber tag
Posted by "Carlin Rogers (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Updated: (BEEHIVE-1216) issue in netui formatNumber tag
Posted by "Carlin Rogers (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/BEEHIVE-1216?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carlin Rogers updated BEEHIVE-1216:
-----------------------------------
Affects Version/s: 1.0.1
1.0.2
> 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, 1.0.1, 1.0.2
> 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.