[jboss-jira] [JBoss JIRA] (JBRULES-3433) DRL parser accepts function written in MVEL
Wolfgang Laun (JIRA)
jira-events at lists.jboss.org
Thu Mar 22 03:22:47 EDT 2012
Wolfgang Laun created JBRULES-3433:
--------------------------------------
Summary: 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: Mark Proctor
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: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list