-
Bug
-
Resolution: Done
-
Major
-
7.1.0.GA, 7.9.0.GA
-
This issue occurs on RHDM 7.1.0 to RHDM 7.9.0.
-
False
-
False
-
Release Notes
-
-
-
-
-
-
CR1
-
+
-
Undefined
-
-
-
2020 Week 52-03 (from Dec 21), 2021 Week 07-09 (from Feb 15)
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
- is cloned by
-
DROOLS-5959 BigDecimal_variable % Numeric_value operation causes a compilation error in executable model.
- Closed