-
Bug
-
Resolution: Done
-
Major
-
None
-
None
-
2020 Week 52-03 (from Dec 21)
-
-
Undefined
-
NEW
-
NEW
-
---
-
---
Building a rule written in MVEL dialect like (*1) using BigDecimal_variable % Numeric_value operation (*1-1) in executable rule model, a compilation error (*2) occurs.
(*1)
package com.example.reproducer import com.example.reproducer.Fact dialect "mvel" rule "rule1b" when $fact : Fact( $year : year, (($year % 400) == 0) || ((($year % 4) == 0) && (($year % 100) != 0)), $flag : "YES" ) // ..... (*1-1) then modify($fact) { leapYear = $flag } System.out.println("***** $fact: " + $fact + ", " + $year + " is a leap year? " + $fact.leapYear); end
(*2)
[ERROR] /work2/testdir/reproducer_mc_1b/target/generated-sources/drools-model-compiler/main/java/com/example/reproducer/PF6/LambdaPredicateF6282A65CE56BF77478DD6D1D7E1AFE4.java:[17,133] bad operand types for binary operator '%' first type: java.math.BigDecimal second type: int
- clones
-
RHDM-1545 BigDecimal_variable % Numeric_value operation causes a compilation error in executable model.
- Closed