You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@shale.apache.org by "Guy Coleman (JIRA)" <ji...@apache.org> on 2007/04/26 10:46:42 UTC
[jira] Updated: (SHALE-440) Prefer BigDecimal(String) to
BigDecimal(double) in MockExpressionFactory.coerce()
[ https://issues.apache.org/struts/browse/SHALE-440?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Guy Coleman updated SHALE-440:
------------------------------
Attachment: MEF.patch
Patch to fix the issue, including a test.
> Prefer BigDecimal(String) to BigDecimal(double) in MockExpressionFactory.coerce()
> ---------------------------------------------------------------------------------
>
> Key: SHALE-440
> URL: https://issues.apache.org/struts/browse/SHALE-440
> Project: Shale
> Issue Type: Bug
> Components: Test
> Affects Versions: 1.0.4
> Reporter: Guy Coleman
> Priority: Minor
> Attachments: MEF.patch
>
>
> When coercing a Number to a BigDecimal, MockExpressionFactory.coerce() uses the BigDecimal(double) constructor. It should use BigDecimal(String) because it produces more predictable results.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.