]
Mario Fusco resolved JBRULES-3432.
----------------------------------
Fix Version/s: 5.3.2.Final
Resolution: Done
Error in error message for bad syntax in function
-------------------------------------------------
Key: JBRULES-3432
URL:
https://issues.jboss.org/browse/JBRULES-3432
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
Priority: Minor
Fix For: 5.3.2.Final, 5.4.0.Final
Without dialect "mvel", this DRL function written in MVEL
package mvel;
function Integer englishToInt(String englishNumber){
return ["one":1, "two":2, "three":3,
"four":4, "five":5].get(englishNumber.toLowerCase());
}
causes this error message - NOTE THE NAME OF THE FUNCTION!
Error importing : 'mvel.EnglishToInt.englishToInt'
[ function englishToIntenglishToInt (line:12): Syntax error on tokens, Name expected
instead
]
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: