[jboss-jira] [JBoss JIRA] (DROOLS-5051) Mvel type coercion and rounding behavior compatibility between mvel 2.2.8 and 2.4.3
Toshiya Kobayashi (Jira)
issues at jboss.org
Fri Feb 14 02:43:01 EST 2020
[ https://issues.redhat.com/browse/DROOLS-5051?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13971812#comment-13971812 ]
Toshiya Kobayashi edited comment on DROOLS-5051 at 2/14/20 2:42 AM:
--------------------------------------------------------------------
Fixed by
https://github.com/mvel/mvel/commit/74236608795efa2f2cc536b923417d0966e549bc
Also unit tests added
https://github.com/kiegroup/drools/pull/2766
was (Author: tkobayashi):
Fixed by
https://github.com/mvel/mvel/pull/229
> Mvel type coercion and rounding behavior compatibility between mvel 2.2.8 and 2.4.3
> -----------------------------------------------------------------------------------
>
> Key: DROOLS-5051
> URL: https://issues.redhat.com/browse/DROOLS-5051
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 7.33.0.Final
> Reporter: Toshiya Kobayashi
> Assignee: Toshiya Kobayashi
> Priority: Major
> Labels: support
>
> I have rule like as:
> =========
> rule "My Rule"
> no-loop true
> dialect "mvel"
> when
> $info : MyInfo()
> then
> modify ($info) {
> setResult(15 * Math.round( new BigDecimal("49.4") ) / 100 )
> }
> end
> =========
> If I execute this rule in BRMS 6.4.x release (mvel 2.2.8), I will get 7.35 in the response . But if I execute same rule in RHDM 7.4.+ release (mvel 2.4.3) I will 7 in the response.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
More information about the jboss-jira
mailing list