[jboss-jira] [JBoss JIRA] (JBRULES-3432) Error in error message for bad syntax in function

Mark Proctor (JIRA) jira-events at lists.jboss.org
Sun Apr 1 23:59:47 EDT 2012


     [ https://issues.jboss.org/browse/JBRULES-3432?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Proctor reassigned JBRULES-3432:
-------------------------------------

    Assignee: Mario Fusco  (was: Mark Proctor)

    
> 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.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: 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