[
https://issues.redhat.com/browse/DROOLS-5887?page=com.atlassian.jira.plug...
]
Luca Molteni moved RHDM-1525 to DROOLS-5887:
--------------------------------------------
Project: Drools (was: Red Hat Decision Manager)
Key: DROOLS-5887 (was: RHDM-1525)
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
The enhanced "for" (foreach) statement causes compilation
error in executable models.
-------------------------------------------------------------------------------------
Key: DROOLS-5887
URL:
https://issues.redhat.com/browse/DROOLS-5887
Project: Drools
Issue Type: Bug
Components: executable model
Reporter: Luca Molteni
Assignee: Luca Molteni
Priority: Major
Labels: support
Attachments: reproducer_02801729_1a.zip
Compiling a rule like (*1) which is described in MVEL dialect and contains the enhanced
"for" (foreach) statement in the action part with executable rule models
enabled, compilation error like (*2) occurs at the enhanced "for" statement.
(*1)
{noformat}
package com.example.reproducer
import java.util.ArrayList
import com.example.reproducer.Bus
dialect "mvel"
rule "bus1"
when
$buses : ArrayList() from collect ( Bus() )
then
for (Bus : $buses ) {
System.out.println("bus: " + bus);
}
end
{noformat}
(*2)
{noformat}
[ERROR] Unable to build KieBaseModel:rules
CompilationProblemErrorResult: org.drools.mvelcompiler.MvelCompilerException: Type check
of for (Bus bus : $buses) {
System.out.println("bus: " + bus);
} failed.
{noformat}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)