[jboss-jira] [JBoss JIRA] (JBRULES-3432) Error in error message for bad syntax in function
Wolfgang Laun (JIRA)
jira-events at lists.jboss.org
Wed Mar 21 03:21:47 EDT 2012
Wolfgang Laun created JBRULES-3432:
--------------------------------------
Summary: 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: Mark Proctor
Priority: Minor
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: 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