Davide Sottara created DROOLS-452:
-------------------------------------
Summary: MVEL validates illegal expressions using ":"
Key: DROOLS-452
URL:
https://issues.jboss.org/browse/DROOLS-452
Project: Drools
Issue Type: Bug
Security Level: Public (Everyone can see)
Reporter: Davide Sottara
Assignee: Mario Fusco
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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira