shale-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guy Coleman (JIRA)" <j...@apache.org>
Subject [jira] Updated: (SHALE-440) Prefer BigDecimal(String) to BigDecimal(double) in MockExpressionFactory.coerce()
Date Thu, 26 Apr 2007 08:46:42 GMT

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


Mime
View raw message