]
Mario Fusco resolved JBRULES-3433.
----------------------------------
Fix Version/s: 5.3.2.Final
Resolution: Done
DRL parser accepts function written in MVEL
-------------------------------------------
Key: JBRULES-3433
URL:
https://issues.jboss.org/browse/JBRULES-3433
Project: Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: drools-compiler (expert)
Affects Versions: 5.4.0.Beta2
Reporter: Wolfgang Laun
Assignee: Mario Fusco
Fix For: 5.3.2.Final, 5.4.0.Final
A DRL function using MVEL syntax "compiles" without any error indication when
dialect "mvel" is set at package lavel.
import java.util.Map;
dialect "mvel"
function Integer x(String englishNumber){
Map m = ["one":1, "two":2, "three":3,
"four":4, "five":5]; # not Java here!
Object obj = m.get(englishNumber.toLowerCase());
return Integer.parseInt(obj.toString());
}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: