[jboss-jira] [JBoss JIRA] (DROOLS-452) MVEL validates illegal expressions using ":"

Davide Sottara (JIRA) issues at jboss.org
Sat Jan 16 15:23:00 EST 2016


    [ https://issues.jboss.org/browse/DROOLS-452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13149692#comment-13149692 ] 

Davide Sottara commented on DROOLS-452:
---------------------------------------

Good to know it's fixed. 

I suspect the last ";" has been added by MVEL internally, but then that fails the parser. 
[~mario.fusco] may know better, but the message does not look weird to me. 

It could be more informative, that is true, but should be enough to point the developer to the right cause.

> MVEL validates illegal expressions using ":"
> --------------------------------------------
>
>                 Key: DROOLS-452
>                 URL: https://issues.jboss.org/browse/DROOLS-452
>             Project: Drools
>          Issue Type: Bug
>            Reporter: Davide Sottara
>            Assignee: Petr Široký
>            Priority: Minor
>
> A rule like this
> {code}
> rule "Typo"
> dialect "mvel"
> when
>   ...
> then
>   // Notice the ":" in place of ";". There is also a \n at the end of the line
>   System.out.println( "Hello" ):  
>   // more statements here
> end
> {code}
> MVEL will validate the RHS at compile time. 
> At runtime, the printout (actually any statement ending with ":") will be
> executed, but MVEL will fail silently thereafter. The rest of the conclusion
> will not be evaluated.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)



More information about the jboss-jira mailing list