[jboss-jira] [JBoss JIRA] (JBRULES-3433) DRL parser accepts function written in MVEL
Mario Fusco (JIRA)
jira-events at lists.jboss.org
Tue Apr 3 10:40:47 EDT 2012
[ https://issues.jboss.org/browse/JBRULES-3433?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
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: 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