]
Luca Molteni updated DROOLS-5891:
---------------------------------
Sprint: 2020 Week 49-51 (from Nov 30)
The use of BigDecimal literal causes a build failure in executable
model.
-------------------------------------------------------------------------
Key: DROOLS-5891
URL:
https://issues.redhat.com/browse/DROOLS-5891
Project: Drools
Issue Type: Bug
Components: executable model
Reporter: Luca Molteni
Assignee: Luca Molteni
Priority: Major
Labels: support
Compiling a rule like (\*1) which is described in MVEL dialect and uses BigDecimal
literal (number literal + suffix 'B') with executable rule models enabled, an
error like (\*2) occurs.
(\*1)
{noformat}
package com.example.reproducer
import com.example.reproducer.Bus
dialect "mvel"
rule "bus3c"
when
$bus : Bus()
then
modify($bus) {
weight = 13000B
}
System.out.println("***** " + $bus + ", weight = " +
$bus.weight);
end
{noformat}
$bus.weight is a BigDecimal type property.
(\*2)
{noformat}
[ERROR] Unable to build KieBaseModel:rules
CompilationProblemErrorResult: org.drools.mvelcompiler.MvelCompilerException: RHS
doesn't have a type
{noformat}