]
Luca Molteni moved RHDM-1526 to DROOLS-5889:
--------------------------------------------
Project: Drools (was: Red Hat Decision Manager)
Key: DROOLS-5889 (was: RHDM-1526)
Workflow: GIT Pull Request workflow (was: CDW with docs v1)
Docs QE Status: NEW
Component/s: executable model
(was: BRE)
Environment: (was: RHDM 7.9.0.)
Affects Version/s: (was: 7.9.0.GA)
QE Status: NEW
Assignment to BigDecimal type property causes compilation errors in
executable model.
-------------------------------------------------------------------------------------
Key: DROOLS-5889
URL:
https://issues.redhat.com/browse/DROOLS-5889
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 contains an assignment
statement to BigDecimal type property with executable rule models enabled, compilation
errors like (*2) occur.
(*1)
{noformat}
package com.example.reproducer
import com.example.reproducer.Bus
dialect "mvel"
rule "bus3a"
when
$bus : Bus()
then
modify($bus) {
weight = 13000
}
System.out.println("***** " + $bus + ", weight = " +
$bus.weight);
end
{noformat}
$bus.weight is a BigDecimal type property.
(*2)
{noformat}
[ERROR]
/test/reproducer_02801729_3a/target/generated-sources/drools-model-compiler/main/java/com/example/reproducer/P23/LambdaConsequence23B3ED62B695E9AEA44284D670FC4A7C.java:[20,13]
weight has private access in com.example.reproducer.Bus
[ERROR]
/test/reproducer_02801729_3a/target/generated-sources/drools-model-compiler/main/java/com/example/reproducer/P23/LambdaConsequence23B3ED62B695E9AEA44284D670FC4A7C.java:[20,23]
incompatible types: int cannot be converted to java.math.BigDecimal
{noformat}