-
Bug
-
Resolution: Done
-
Major
-
None
-
None
-
2020 Week 49-51 (from Nov 30)
-
-
Undefined
-
NEW
-
NEW
-
---
-
---
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)
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
(*2)
[ERROR] Unable to build KieBaseModel:rules CompilationProblemErrorResult: org.drools.mvelcompiler.MvelCompilerException: Type check of for (Bus bus : $buses) { System.out.println("bus: " + bus); } failed.
- clones
-
RHDM-1513 The enhanced "for" (foreach) statement causes compilation error in executable models.
- Closed